withBackgroundTime<T> method

  1. @override
Future<T> withBackgroundTime<T>(
  1. Future<T> task()
)
override

在系统允许的后台时间内执行(iOS 的 beginBackgroundTask),其他平台直接执行。

Implementation

@override
Future<T> withBackgroundTime<T>(Future<T> Function() task) => task();