setError method

void setError(
  1. dynamic error
)

Implementation

void setError(error) {
  if (onError != null) onError!(error);
  if (!_isDisposed) notifyListeners();
}