match method

SelectorBuilder match(
  1. String fieldName,
  2. String pattern, {
  3. bool? multiLine,
  4. bool? caseInsensitive,
  5. bool? dotAll,
  6. bool? extended,
})

Implementation

SelectorBuilder match(String fieldName, String pattern,
    {bool? multiLine, bool? caseInsensitive, bool? dotAll, bool? extended}) {
  _addExpression(fieldName, {
    '\$regex': BsonRegexp(pattern,
        multiLine: multiLine,
        caseInsensitive: caseInsensitive,
        dotAll: dotAll,
        extended: extended)
  });
  return this;
}