fromValue static method

UIScrollTypeMask fromValue(
  1. int value
)

Implementation

static UIScrollTypeMask fromValue(int value) => switch (value) {
  1 => UIScrollTypeMaskDiscrete,
  2 => UIScrollTypeMaskContinuous,
  3 => UIScrollTypeMaskAll,
  _ => throw ArgumentError('Unknown value for UIScrollTypeMask: $value'),
};