fromValue static method

UIContainerBackgroundStyle fromValue(
  1. int value
)

Implementation

static UIContainerBackgroundStyle fromValue(int value) => switch (value) {
  0 => UIContainerBackgroundStyleAutomatic,
  1 => UIContainerBackgroundStyleGlass,
  2 => UIContainerBackgroundStyleHidden,
  _ => throw ArgumentError('Unknown value for UIContainerBackgroundStyle: $value'),
};