listenCatchError method
StreamSubscription<T?>
listenCatchError(
- WidgetModel listener, {
- void onValue(
- T? value
- void onError(
- Object error
Listen on WM with error catching
Implementation
StreamSubscription<T?> listenCatchError(
WidgetModel listener, {
void Function(T? value)? onValue,
void Function(Object error)? onError,
}) {
return listener.subscribeHandleError<T>(
this,
onValue ?? (_) {},
onError: onError,
);
}