endsWith static method
FormFieldValidator that requires the field's value to end with a specific value.
Parameters:
suffixThe value that the field's value should end with.errorTextThe error message when the value does not end with the suffix.checkNullOrEmptyWhether to check for null or empty values.
Implementation
static FormFieldValidator<String> endsWith(
String suffix, {
String? errorText,
bool checkNullOrEmpty = true,
}) => EndsWithValidator(
suffix,
errorText: errorText,
checkNullOrEmpty: checkNullOrEmpty,
).validate;