isValid method

  1. @override
bool isValid(
  1. String input
)
override

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());