clearError method

void clearError (
  1. {bool notify: false}
)

Implementation

void clearError({bool notify = false}) {
  _error = null;
  if(notify) notifyListeners();
}