showError method

void showError(
  1. String errorMessage, {
  2. TextStyle? errorStyle,
})

Set your error message and its style

Implementation

void showError(String errorMessage, {TextStyle? errorStyle}) {
  tagStates['error']['error_text'] = errorMessage;
  tagStates['show_validator'] = true;
  if (errorStyle != null) {
    tagStates['error']['error_style'] = errorStyle;
  }
  super.notifyListeners();
}