FutureUtils<T> extension
Extensions on Future for real-world utility operations.
- on
-
- Future<
T>
- Future<
Methods
-
withFallback(
T fallback) → Future< T> -
Available on Future<
ReturnsT> , provided by the FutureUtils extensionfallbackif this future throws any error. -
withTimeout(
Duration timeout, {T? fallback}) → Future< T?> -
Available on Future<
Completes withT> , provided by the FutureUtils extensionfallbackif this future does not resolve withintimeout. Returnsnullas fallback if not specified.