isValid property Null safety

bool isValid

True if the current value is valid.

This will not set errorText or hasError and it will not update error display.

See also:

Implementation

bool get isValid => widget.validator?.call(_value) == null;