fromValue static method

NSPropertyListFormat fromValue(
  1. int value
)

Implementation

static NSPropertyListFormat fromValue(int value) => switch (value) {
  1 => NSPropertyListOpenStepFormat,
  100 => NSPropertyListXMLFormat_v1_0,
  200 => NSPropertyListBinaryFormat_v1_0,
  _ => throw ArgumentError('Unknown value for NSPropertyListFormat: $value'),
};