icon property
IconData
get
icon
Returns the icon associated with this result.
Implementation
IconData get icon => switch (this) {
OutcomeResultEnum.win => Icons.emoji_events,
OutcomeResultEnum.loss => Icons.close,
OutcomeResultEnum.draw => Icons.handshake_outlined,
OutcomeResultEnum.eliminated => Icons.remove_circle_outline,
OutcomeResultEnum.unknownDefaultOpenApi => Icons.help_outline,
null => Icons.cancel_outlined,
};