error method

dynamic error(
  1. String error
)

Implementation

error(String error) {
  reset();
  _stateController.addError(error);
}