validate method

  1. @override
String? validate()
override

Validate current field value. Returns error message if current value is invalid

Implementation

@override
String? validate() {
  if (!_hasValue) {
    return null;
  }

  return validator(_lastValue);
}