onError method
Returns a callback when the component has an error.
Implementation
void onError(ErrorCallback callback) {
_onErrorCallback = callback;
notifyListeners();
}
Returns a callback when the component has an error.
void onError(ErrorCallback callback) {
_onErrorCallback = callback;
notifyListeners();
}