checks the input against the given conditions
@override bool isValid(String? value) => hasMatch(pattern.toString(), value!, caseSensitive: caseSensitive);