baseType property
String
get
baseType
Get the base asset category (image, kv, etc.)
Implementation
String get baseType {
if (type.endsWith('_hard')) {
return type.substring(0, type.length - 5); // Remove '_hard'
} else if (type.endsWith('_soft')) {
return type.substring(0, type.length - 5); // Remove '_soft'
}
return type; // Fallback for custom types
}