hasMatch static method

bool hasMatch({
  1. required String pattern,
  2. required String value,
})

Implementation

static bool hasMatch({
  required String pattern,
  required String value,
}) {
  RegExp regex = RegExp(pattern);

  bool result = regex.hasMatch(value);

  appLogsNS('hasMatch $pattern $value => $result');

  return result;
}