CodeTheme class

A ThemeExtension for code highlight color properties used by code viewer.

Inheritance

Constructors

CodeTheme({Color? baseColor, Color? numberColor, Color? commentColor, Color? keywordColor, Color? stringColor, Color? punctuationColor, Color? classColor, Color? constantColor})
const
CodeTheme.harmonized(Color sourceColor, Brightness brightness)
A harmonized code view color theme, based on brightness where colors are harmonized towards a given sourceColor.
factory

Properties

baseColor Color?
final
classColor Color?
final
commentColor Color?
final
constantColor Color?
final
hashCode int
The hash code for this object.
no setterinherited
keywordColor Color?
final
numberColor Color?
final
punctuationColor Color?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringColor Color?
final
type Object
The extension's type.
no setterinherited

Methods

copyWith({Color? baseColor, Color? numberColor, Color? commentColor, Color? keywordColor, Color? stringColor, Color? punctuationColor, Color? classColor, Color? constantColor}) CodeTheme
Must override the copyWith method.
override
lerp(covariant ThemeExtension<CodeTheme>? other, double t) CodeTheme
Must override the lerp method.
override
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

Constants

dark → const CodeTheme
Code view theme colors for dark mode.
light → const CodeTheme
Code view theme colors for light mode.