base64 static method
FormFieldValidator that requires the field's value to be a valid base64 string.
Parameters:
errorText
The error message when the base64 string is invalid.checkNullOrEmpty
Whether to check for null or empty values.
Implementation
static FormFieldValidator<String> base64({
String? errorText,
bool checkNullOrEmpty = true,
}) => Base64Validator(
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;