label property
String
get
label
Returns the short display label for this result.
Implementation
String get label => switch (this) {
OutcomeResultEnum.win => 'Won',
OutcomeResultEnum.loss => 'Lost',
OutcomeResultEnum.draw => 'Draw',
OutcomeResultEnum.eliminated => 'Eliminated',
OutcomeResultEnum.unknownDefaultOpenApi => 'Unknown',
null => 'Aborted',
};