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