FutureX<T> extension

on

Methods

ignoreError() Future<T?>

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

Ignores any error that occurs during the future execution. Usage: fetchData().ignoreError()
result({void onSuccess(T data)?, void onError(Object error)?}) Future<T>

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

Executes onSuccess if the future completes successfully, and onError if it fails.