HighlightResult class
Constructors
-
HighlightResult({required String language, required num relevance, required TokenTreeEmitter emitter, bool illegal = false, Mode? top, HighlightContinuation? continuation, HighlightResult? secondBest, String? code, dynamic errorRaised, Map<
String, dynamic> ? illegalBy, String? value})
Properties
- code ↔ String?
-
getter/setter pair
- continuation → HighlightContinuation?
-
Reusable state for the next chunk; null when parsing failed.
final
- emitter → TokenTreeEmitter
-
final
- errorRaised ↔ dynamic
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- illegal ↔ bool
-
getter/setter pair
-
illegalBy
↔ Map<
String, dynamic> ? -
getter/setter pair
- language → String
-
final
- relevance ↔ num
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondBest ↔ HighlightResult?
-
getter/setter pair
- top ↔ Mode?
-
Legacy access to the active mode. Use continuation for resuming parses.
getter/setter pair
- value → String
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toHtml(
) → String -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited