showError method

bool showError(
  1. String name
)

Whether an error should currently be displayed for name.

Implementation

bool showError(String name) =>
    _errors.containsKey(name) &&
    (_touched.contains(name) || _submitAttempted);