fromValue static method

UIBackgroundRefreshStatus fromValue(
  1. int value
)

Implementation

static UIBackgroundRefreshStatus fromValue(int value) => switch (value) {
  0 => UIBackgroundRefreshStatusRestricted,
  1 => UIBackgroundRefreshStatusDenied,
  2 => UIBackgroundRefreshStatusAvailable,
  _ => throw ArgumentError('Unknown value for UIBackgroundRefreshStatus: $value'),
};