FutureNonNullOnErrorExtension<T extends Object> extension
- on
-
- Future<
T>
- Future<
Methods
-
nullOnError(
{FutureOr< void> onError(Object e, StackTrace s)?, AsyncExtensionErrorLogger? errorLogger, bool logError = true}) → Future<T?> -
Returns this Future value or
null
if it throws an error. -
onComplete(
{required FutureOr< void> onSuccess(T r), required FutureOr<void> onError(Object e, StackTrace s), AsyncExtensionErrorLogger? errorLogger, bool logError = true}) → Future<T?> -
Calls
onSuccess
oronError
when this Future completes.