fromValue static method

UIProgressViewStyle fromValue(
  1. int value
)

Implementation

static UIProgressViewStyle fromValue(int value) => switch (value) {
  0 => UIProgressViewStyleDefault,
  1 => UIProgressViewStyleBar,
  _ => throw ArgumentError('Unknown value for UIProgressViewStyle: $value'),
};