fromValue static method

UIBarMetrics fromValue(
  1. int value
)

Implementation

static UIBarMetrics fromValue(int value) => switch (value) {
  0 => UIBarMetricsDefault,
  1 => UIBarMetricsCompact,
  101 => UIBarMetricsDefaultPrompt,
  102 => UIBarMetricsCompactPrompt,
  _ => throw ArgumentError('Unknown value for UIBarMetrics: $value'),
};