Unverified Commit cb78274c authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Make FormField._validate() return void (#30644)

None of its callers were using the return value, so no need to
invoke the `isValid` getter unnecessarily.
parent 535523db
......@@ -365,10 +365,9 @@ class FormFieldState<T> extends State<FormField<T>> {
return !hasError;
}
bool _validate() {
void _validate() {
if (widget.validator != null)
_errorText = widget.validator(_value);
return !hasError;
}
/// Updates this field's state to the new value. Useful for responding to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment