check static method

bool check(
  1. String text,
  2. String pattern, {
  3. bool caseSensitive = true,
})

Implementation

static bool check(String text, String pattern, {bool caseSensitive = true}) {
  return RegExp(pattern, caseSensitive: caseSensitive).hasMatch(text);
}