onError method

void onError(
  1. String error
)

Implementation

void onError(String error) {
  _state = StatusError(error);
  notifyListeners();
}