onErrorReturn property

T Function(Object? error)? onErrorReturn
final

Callback invoked when an error occurs, to produce fallback data.

If this callback is specified, this ResultNotifier will never be able to enter the Error state.

Implementation

final T Function(Object? error)? onErrorReturn;