setError method

void setError(
  1. String? errorText, {
  2. bool focus = false,
})

Implementation

void setError(String? errorText, {bool focus = false}) {
  $debugPrint(errorText, "setError");
  setState(() => _error = errorText);
  if (focus) focusNode.requestFocus();
}