isbn static method

FormFieldValidator<String> isbn({
  1. String? errorText,
  2. bool checkNullOrEmpty = true,
})

FormFieldValidator that requires the field's value to be a valid ISBN.

Parameters:

  • errorText The error message when the ISBN is invalid.
  • checkNullOrEmpty Whether to check for null or empty values.

Implementation

static FormFieldValidator<String> isbn({
  String? errorText,
  bool checkNullOrEmpty = true,
}) => IsbnValidator(
  errorText: errorText,
  checkNullOrEmpty: checkNullOrEmpty,
).validate;