FutureNonNullOnErrorExtension<T extends Object> extension

on

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 or onError when this Future completes.