validateForm method
Implementation
bool validateForm({bool clear = false, bool consumeError = true}) {
if (clear) {
errors.clear();
remainingError.clear();
}
this.consumeError = consumeError;
return formKey.currentState?.validate() ?? false;
}