FutureNullableOnErrorExtension<T extends Object> extension
- on
-
- Future<
T?>
- Future<
Methods
-
nullOnError(
{FutureOr< void> onError(Object e, StackTrace s)?, FutureOr<void> onErrorOrNull(Object? e, StackTrace? s)?, AsyncExtensionErrorLogger? errorLogger, bool logError = true}) → Future<T?> -
Available on Future<
Returns this Future value orT?> , provided by the FutureNullableOnErrorExtension extensionnull
if it throws an error. -
onComplete(
{required FutureOr< void> onSuccess(T? r), FutureOr<void> onError(Object e, StackTrace s)?, FutureOr<void> onErrorOrNull(Object? e, StackTrace? s)?, AsyncExtensionErrorLogger? errorLogger, bool logError = true}) → Future<T?> -
Available on Future<
CallsT?> , provided by the FutureNullableOnErrorExtension extensiononSuccess
oronError
when this Future completes. IfonErrorOrNull
is defined, callsonErrorOrNull
if it completes withnull
or with an error. -
onCompleteNotNull(
{required FutureOr< void> onSuccess(T r), required FutureOr<void> onErrorOrNull(Object? e, StackTrace? s), AsyncExtensionErrorLogger? errorLogger, bool logError = true}) → Future<T?> -
Available on Future<
CallsT?> , provided by the FutureNullableOnErrorExtension extensiononSuccess
oronErrorOrNull
when this Future completes. CallsonErrorOrNull
If it completes withnull
or with an error.