BsonRegexp constructor

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

Implementation

BsonRegexp(this.pattern,
    {bool? multiLine,
    bool? caseInsensitive,
    bool? dotAll,
    bool? extended,
    String? options})
    : options = createOptionsString(
          options: options,
          multiLine: multiLine,
          caseInsensitive: caseInsensitive,
          dotAll: dotAll,
          extended: extended) {
  bsonPattern = BsonCString(pattern, false);
  bsonOptions = BsonCString(this.options, false);
}