BracketMatchingConfig class
Configuration options for bracket matching.
Constructors
-
BracketMatchingConfig({bool afterCursor = true, String brackets = '()[]{}', int maxScanDistance = 10000, List<
Range< renderMatch(MatchResult match, EditorState state)?})Decoration> > -
const
Properties
- afterCursor → bool
-
Whether the bracket matching should look at the character after
the cursor when matching (if the one before isn't a bracket).
Defaults to true.
final
- brackets → String
-
The bracket characters to match, as a string of pairs.
Defaults to
"()[]{}".final - hashCode → int
-
The hash code for this object.
no setterinherited
- maxScanDistance → int
-
The maximum distance to scan for matching brackets.
This is only relevant for brackets not encoded in the syntax tree.
Defaults to 10000.
final
-
renderMatch
→ List<
Range< Function(MatchResult match, EditorState state)?Decoration> > -
Custom function to render match decorations.
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited