TokenStyle class final
The resolved look of a token. Colors are ARGB integers, as
0xAARRGGBB.
Constructors
- TokenStyle({required int foreground, int? background, int fontStyle = TokenFontStyle.none})
-
A style with a
foregroundcolor and optionalbackgroundandfontStyle.const
Properties
- background → int?
-
Background color.
nullmeans the editor background.final - bold → bool
-
Whether fontStyle includes TokenFontStyle.bold.
no setter
- fontStyle → int
-
A combination of TokenFontStyle flags.
final
- foreground → int
-
Text color.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- italic → bool
-
Whether fontStyle includes TokenFontStyle.italic.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strikethrough → bool
-
Whether fontStyle includes TokenFontStyle.strikethrough.
no setter
- underline → bool
-
Whether fontStyle includes TokenFontStyle.underline.
no setter
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.
override