call method

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

Implementation

@override
bool call(String input) {
  // Per JSON Schema spec §6.3.3, patterns are not implicitly anchored —
  // the pattern only needs to match somewhere within the string.
  return pattern.hasMatch(input);
}