FutureMinDuration<T> extension
Future 常用扩展
- on
-
- Future<
T>
- Future<
Methods
-
catchErrorReturn(
T defaultValue) → Future< T> -
Available on Future<
错误捕获,返回默认值T> , provided by the FutureMinDuration extension -
delayed(
Duration duration) → Future< T> -
Available on Future<
延迟执行T> , provided by the FutureMinDuration extension -
withMinDuration(
Duration minDuration) → Future< T> -
Available on Future<
确保 Future 至少执行指定时间T> , provided by the FutureMinDuration extension -
withMinMilliseconds(
int milliseconds) → Future< T> -
Available on Future<
确保 Future 至少执行指定毫秒数T> , provided by the FutureMinDuration extension -
withMinSeconds(
int seconds) → Future< T> -
Available on Future<
确保 Future 至少执行指定秒数T> , provided by the FutureMinDuration extension -
withTimeout(
Duration timeout, {T? fallback}) → Future< T> -
Available on Future<
超时处理T> , provided by the FutureMinDuration extension