itemName property
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;
}
Gets the item name without kind (e.g., "hero").
String get itemName {
final full = fullItemName;
final dotIndex = full.lastIndexOf('.');
return dotIndex > 0 ? full.substring(0, dotIndex) : full;
}