fromValue static method

UIUserInterfaceStyle fromValue(
  1. int value
)

Implementation

static UIUserInterfaceStyle fromValue(int value) => switch (value) {
  0 => UIUserInterfaceStyleUnspecified,
  1 => UIUserInterfaceStyleLight,
  2 => UIUserInterfaceStyleDark,
  _ => throw ArgumentError('Unknown value for UIUserInterfaceStyle: $value'),
};