MyUtilityExtensionFutureWithDelay<T> extension

on

Methods

withDelay(Duration minOperationTime, {Duration threshold = const Duration(milliseconds: 50)}) Future<T>

Available on Future<T>, provided by the MyUtilityExtensionFutureWithDelay extension

If the time it takes for this to complete is less than minOperationTime, then a Future.delayed is awaited for the remaining time. The delay also affects any errors of this Future.