CodeHighlightThemeMode class
Define language rules and restrictions for highlighting.
Since the dart stack capacity is relatively small, stack overflow may occur when executing syntax highlighting, so we added some restrictions to disable syntax highlighting.
The issue see https://github.com/dart-lang/sdk/issues/48425
Constructors
- CodeHighlightThemeMode({required Mode mode, int maxSize = 4 * 1024 * 1024, int maxLineLength = 1 * 1024 * 1024})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- maxLineLength → int
-
If the text length of a line is higher than this value, syntax highlighting
will not be performed.
final
- maxSize → int
-
If the total text length is higher than this value, syntax highlighting
will not be performed.
final
- mode → Mode
-
Syntax highlighting language rule.
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.
override