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