fromValue static method

NSTimeZoneNameStyle fromValue(
  1. int value
)

Implementation

static NSTimeZoneNameStyle fromValue(int value) => switch (value) {
      0 => NSTimeZoneNameStyleStandard,
      1 => NSTimeZoneNameStyleShortStandard,
      2 => NSTimeZoneNameStyleDaylightSaving,
      3 => NSTimeZoneNameStyleShortDaylightSaving,
      4 => NSTimeZoneNameStyleGeneric,
      5 => NSTimeZoneNameStyleShortGeneric,
      _ =>
        throw ArgumentError("Unknown value for NSTimeZoneNameStyle: $value"),
    };