ParserOptions class

A class that configures how regular expressions are treated in the default parser or specifies a different parser to use.

Annotations

Constructors

ParserOptions({bool multiLine = false, bool caseSensitive = true, bool unicode = false, bool dotAll = false})
Creates a ParserOptions that configures how regular expressions are treated.
const
ParserOptions.external(ExternalParser parser)
Creates a ParserOptions for specifying an external parser that parses text into a list of TextElements.
const

Properties

caseSensitive bool
If this is disabled, then case is ignored.
final
dotAll bool
If this is enabled, then the . pattern will match all characters, including line terminators.
final
hashCode int
The hash code for this object.
no setteroverride
multiLine bool
If this is enabled, then ^ and $ will match the beginning and end of a line, in addition to matching beginning and end of input, respectively.
final
parser ExternalParser?
An external parser function.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unicode bool
If this is enabled, then the pattern is treated as a Unicode pattern as described by the ECMAScript standard.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override