onError method

void onError(
  1. R bloc,
  2. StateError error, {
  3. String? event,
})

Called whenever the bloc encounters an error

Implementation

void onError(R bloc, StateError error, {String? event}) {}