$match method

void $match(
  1. String pattern, {
  2. String options = 'i',
})

关键词匹配,mongo官方文档:https://www.mongodb.com/docs/v4.4/reference/operator/query/regex/

Implementation

void $match(String pattern, {String options = 'i'}) {
  _cmds['\$regex'] = pattern;
  _cmds['\$options'] = options;
}