InlineSyntax constructor

InlineSyntax(
  1. String pattern, {
  2. int? startCharacter,
  3. bool caseSensitive = true,
})

Create a new InlineSyntax which matches text on pattern.

If startCharacter is passed, it is used as a pre-matching check which is faster than matching against pattern.

If caseSensitive is disabled, then case is ignored when matching the pattern.

Implementation

InlineSyntax(String pattern, {int? startCharacter, bool caseSensitive = true})
    : pattern =
          RegExp(pattern, multiLine: true, caseSensitive: caseSensitive),
      _startCharacter = startCharacter;