ISBNValidationController constructor
ISBNValidationController({})
Implementation
ISBNValidationController(
{dynamic version, String message = 'Invalid ISBN', bool required = false})
: super(
message: message,
isValid: ({controller}) {
String? textValue = controller?.rawValue?.toString();
if (!required && TextUtils.isEmpty(textValue)) return true;
return Validators.isISBN(textValue, version);
});