Returns a boolean indicating whether the input is valid or not. Subclasses must implement this method to define the validation logic.
@override bool isValid(String input) => !input.trim().contains(value);