AnySyntaxHighlighterTheme class

Actual theme class with modern oops language tokens contains all the tokens available in the base theme

Inheritance

Constructors

AnySyntaxHighlighterTheme({TextStyle classStyle = const TextStyle(color: Colors.cyanAccent), TextStyle staticStyle = const TextStyle(color: Colors.pinkAccent), TextStyle constructor = const TextStyle(color: Colors.orangeAccent), TextStyle multilineComment = const TextStyle(color: Colors.red, fontStyle: FontStyle.italic), TextStyle method = const TextStyle(color: Colors.lightBlueAccent), TextStyle private = const TextStyle(color: Colors.grey), TextStyle comment = const TextStyle(color: Colors.red, fontStyle: FontStyle.italic), TextStyle keyword = const TextStyle(color: Colors.blueAccent, fontWeight: FontWeight.bold), TextStyle identifier = const TextStyle(color: Colors.white), TextStyle function = const TextStyle(color: Colors.greenAccent), TextStyle number = const TextStyle(color: Colors.yellowAccent), TextStyle string = const TextStyle(color: Colors.lightGreen), TextStyle operator = const TextStyle(color: Colors.deepOrange), TextStyle separator = const TextStyle(color: Colors.white), Decoration decoration = const BoxDecoration(color: Colors.black87), double? letterSpacing = 1, double? wordSpacing, String? fontFamily, List<FontFeature> fontFeatures = const [], TextStyle lineNumber = const TextStyle(color: Colors.white, fontFeatures: [FontFeature.tabularFigures()])})
const

Properties

classStyle TextStyle
text styling for class style token
final
comment TextStyle
text styling for comment token
finalinherited
constructor TextStyle
text styling for constructor token
final
decoration Decoration
background decoration to be passed to a Container widget boxDecoration renamed to decoration since v0.0.12
finalinherited
fontFamily String?
font family
final
fontFeatures List<FontFeature>
font features like slashed zero etc.
final
function TextStyle
text styling for function token
finalinherited
hashCode int
The hash code for this object.
no setterinherited
identifier TextStyle
text styling for identifier token
finalinherited
keyword TextStyle
text styling for keyword token
finalinherited
letterSpacing double?
letter spacing and word spacing in final widget word spacing might not work as expected
final
lineNumber TextStyle
text styling for line numbers
final
method TextStyle
text styling for method token ( functions followed by a . operator)
final
multilineComment TextStyle
text styling for multiline comment token
final
number TextStyle
text styling for number token
finalinherited
operator TextStyle
text styling for operator token
finalinherited
private TextStyle
text styling for private token
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separator TextStyle
text styling for separator token
finalinherited
staticStyle TextStyle
text styling for static identifier token for both static data member and method
final
string TextStyle
text styling for string token
finalinherited
wordSpacing double?
letter spacing and word spacing in final widget word spacing might not work as expected
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