itemName property

String get itemName

Gets the item name without kind (e.g., "hero").

Implementation

String get itemName {
  final full = fullItemName;
  final dotIndex = full.lastIndexOf('.');
  return dotIndex > 0 ? full.substring(0, dotIndex) : full;
}