fromValue static method

UIBarStyle fromValue(
  1. int value
)

Implementation

static UIBarStyle fromValue(int value) => switch (value) {
  0 => UIBarStyleDefault,
  1 => UIBarStyleBlack,
  2 => UIBarStyleBlackTranslucent,
  _ => throw ArgumentError('Unknown value for UIBarStyle: $value'),
};