FormatRule class
Rule that applies a TextAttribute to text that matches a regex. Used by AutoFormatter.
- Annotations
Constructors
- FormatRule(RegExp exp, MatchToAttribute matchToAttribute)
-
Create a format rule.
const
Properties
- exp → RegExp
-
The regex that should be matched.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- matchToAttribute → MatchToAttribute
-
Function that converts a regular expression match to an attribute.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited