fromValue static method

UIBackgroundFetchResult fromValue(
  1. int value
)

Implementation

static UIBackgroundFetchResult fromValue(int value) => switch (value) {
  0 => UIBackgroundFetchResultNewData,
  1 => UIBackgroundFetchResultNoData,
  2 => UIBackgroundFetchResultFailed,
  _ => throw ArgumentError('Unknown value for UIBackgroundFetchResult: $value'),
};