OutcomeResultUI extension

UI helpers for OutcomeResultEnum: icon, color, and label mappings.

Defined on the nullable type so the null case (aborted game, no outcome row written) can be handled uniformly alongside real results.

on
  • OutcomeResultEnum?

Properties

icon IconData

Available on OutcomeResultEnum?, provided by the OutcomeResultUI extension

Returns the icon associated with this result.
no setter
label String

Available on OutcomeResultEnum?, provided by the OutcomeResultUI extension

Returns the short display label for this result.
no setter

Methods

color(ColorScheme colorScheme, {required AppSemanticColors semanticColors}) Color

Available on OutcomeResultEnum?, provided by the OutcomeResultUI extension

Returns the semantic foreground associated with this result.
containerColor(ColorScheme colorScheme, {required AppSemanticColors semanticColors}) Color

Available on OutcomeResultEnum?, provided by the OutcomeResultUI extension

Returns the semantic container associated with this result.
onContainerColor(ColorScheme colorScheme, {required AppSemanticColors semanticColors}) Color

Available on OutcomeResultEnum?, provided by the OutcomeResultUI extension

Returns the paired foreground for containerColor.