changeOnErrorState method

void changeOnErrorState(
  1. bool state
)

Changes the error state to state and notifies listeners.

Implementation

void changeOnErrorState(final bool state) {
  onError = state;
  if(state) _imageData = null;
  notifyListeners();
}