check static method

bool check(
  1. String text,
  2. String pattern
)

Implementation

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