setToHasError abstract method

void setToHasError(
  1. dynamic error, {
  2. StackTrace? stackTrace,
  3. VoidCallback? refresher,
})

Set the state to the error status

Implementation

void setToHasError(
  dynamic error, {
  StackTrace? stackTrace,
  VoidCallback? refresher,
});