isValid method
Returns a boolean indicating whether the input is valid or not. Subclasses must implement this method to define the validation logic.
Implementation
@override
bool isValid(String input) => caseSensitive
? match(input, other)
: match(input.toLowerCase(), other.toLowerCase());