fromValue static method

UIPageControlBackgroundStyle fromValue(
  1. int value
)

Implementation

static UIPageControlBackgroundStyle fromValue(int value) => switch (value) {
  0 => UIPageControlBackgroundStyleAutomatic,
  1 => UIPageControlBackgroundStyleProminent,
  2 => UIPageControlBackgroundStyleMinimal,
  _ => throw ArgumentError('Unknown value for UIPageControlBackgroundStyle: $value'),
};