runInBackground<T, U> method
- @Deprecated('Use [nativeImplementations] instead')
- FutureOr<
T> function(- U arg
- U arg
Implementation
@Deprecated('Use [nativeImplementations] instead')
Future<T> runInBackground<T, U>(
FutureOr<T> Function(U arg) function,
U arg,
) async {
final compute = this.compute;
if (compute != null) {
return await compute(function, arg);
}
return await function(arg);
}