HljsStyle class
Style properties for a single scope in a highlight.js theme.
This is the strongly typed replacement for Map<String, dynamic> in theme
definitions. The outer map (Map<String, HljsStyle>) uses string keys for
scope names because those are arbitrary (e.g. 'keyword', 'title.class').
The inner style properties, however, are a fixed set and are represented as
typed class fields.
Constructors
Properties
- backgroundColor → String?
-
Background color as a hex string (e.g.
'#ffffff').final - bold → bool
-
Whether the text should be bold.
final
- color → String?
-
Text foreground color as a hex string (e.g.
'#d73a49').final - hashCode → int
-
The hash code for this object.
no setterinherited
- italic → bool
-
Whether the text should be italic.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- strikethrough → bool
-
Whether the text should have a strikethrough.
final
- underline → bool
-
Whether the text should be underlined.
final
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