displayLabel property
String
get
displayLabel
Returns the label if set, otherwise falls back to id.toString()
This ensures a non-null string is always available for display and color mapping purposes.
Implementation
String get displayLabel => label ?? id.toString();