OnlyTextValidationController constructor
OnlyTextValidationController({})
Implementation
OnlyTextValidationController(
{String message = 'Text should contain only text', bool required = false})
: super(
message: message,
isValid: ({controller}) {
String? textValue = controller?.rawValue?.toString();
if (!required && TextUtils.isEmpty(textValue)) return true;
return Validators.isAlpha(textValue!);
});