fromValue static method

UIPageControlInteractionState fromValue(
  1. int value
)

Implementation

static UIPageControlInteractionState fromValue(int value) => switch (value) {
  0 => UIPageControlInteractionStateNone,
  1 => UIPageControlInteractionStateDiscrete,
  2 => UIPageControlInteractionStateContinuous,
  _ => throw ArgumentError('Unknown value for UIPageControlInteractionState: $value'),
};