matches method

bool matches(
  1. String regExpr
)

Returns whether a given regExpr is a part of the strings in _messages. regExpr: the regular expression to search

Implementation

bool matches(String regExpr) {
  var rc = false;
  var regExp = RegExp(regExpr);
  for (var line in _messages) {
    if (regExp.hasMatch(line)) {
      rc = true;
      break;
    }
  }
  return rc;
}