fromValue static method

NSFileManagerUnmountOptions fromValue(
  1. int value
)

Implementation

static NSFileManagerUnmountOptions fromValue(int value) => switch (value) {
  1 => NSFileManagerUnmountAllPartitionsAndEjectDisk,
  2 => NSFileManagerUnmountWithoutUI,
  _ => throw ArgumentError('Unknown value for NSFileManagerUnmountOptions: $value'),
};