fromValue static method

UIBehavioralStyle fromValue(
  1. int value
)

Implementation

static UIBehavioralStyle fromValue(int value) => switch (value) {
  0 => UIBehavioralStyleAutomatic,
  1 => UIBehavioralStylePad,
  2 => UIBehavioralStyleMac,
  _ => throw ArgumentError('Unknown value for UIBehavioralStyle: $value'),
};