errorText method
Implementation
String? errorText({dynamic value}) {
value ??= this.value;
if (!(value is String)) {
return null;
}
if (value.isNotEmpty && value.length < _minLength) {
return "Value must have at least $_minLength characters";
}
return null;
}