MyUtilityExtensionFutureWithDelay<T> extension
- on
-
- Future<
T>
- Future<
Methods
-
withDelay(
Duration minOperationTime, {Duration threshold = const Duration(milliseconds: 50)}) → Future< T> -
Available on Future<
If the time it takes for this to complete is less thanT> , provided by the MyUtilityExtensionFutureWithDelay extensionminOperationTime
, then a Future.delayed is awaited for the remaining time. The delay also affects any errors of this Future.