ModeColor class

Inheritance

Constructors

ModeColor.new({required SchemeColor light, required SchemeColor dark})
ModeColor.from(ModeColor c)
ModeColor.generate(ColorSeed seed)
factory

Properties

accent MannerColor
finalinherited
active LayerColor
finalinherited
back Color
the background color. This is the main color of the element
finalinherited
border Color?
the border color. This is the color of the border. If null, the border is transparent
finalinherited
borderContext Color?
finalinherited
dark SchemeColor
final
disabled LayerColor
finalinherited
error MannerColor
finalinherited
flat StateColor
finalinherited
front Color
the front color. This is the color of the text and icons
finalinherited
hashCode int
The hash code for this object.
no setterinherited
hover LayerColor
finalinherited
info MannerColor
finalinherited
inverse KindColor
finalinherited
light SchemeColor
final
major StateColor?
finalinherited
map JsonMap
no setteroverride
minor StateColor?
finalinherited
neutral LayerColor
finalinherited
plain MannerColor
finalinherited
primary KindColor
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
safeMajor StateColor
major might not be set (if using plain). In this case, this getter will return flat
no setterinherited
safeMinor StateColor
minor might not be set (if using plain). In this case, this getter will return flat
no setterinherited
secondary KindColor
finalinherited
success MannerColor
finalinherited
warning MannerColor
finalinherited

Methods

copyWith({LayerColor? neutral, LayerColor? hovered, LayerColor? pressed, LayerColor? disabled}) StateColor
inherited
desaturated([double factor = 1]) LayerColor
return a color with the same hue but different saturation factor = 1 will return the same color, 0 will return grey
inherited
inter(LayerColor other, double factor) LayerColor
interpolate between two colors factor = 1 will return the other color, 0 will return the same color
inherited
kind(ColorKinds kind) MannerColor
inherited
layer(ColorLayers layer) Color
inherited
manner(ColorManners manner) StateColor
inherited
maybeKind(ColorKinds? kind) MannerColor?
inherited
maybeLayer(ColorLayers? layer) Color?
inherited
maybeManner(ColorManners? manner) StateColor?
inherited
maybeMode(ColorModes? modes) SchemeColor?
maybeScheme(ColorSchemes? scheme) KindColor?
inherited
maybeState(ColorStates? state) LayerColor?
inherited
mirrorBrightness([double factor = 1]) LayerColor
mirror the brightness of a color. keep the hue and saturation factor = 1 will return the inverted color, 0 will return the same color
inherited
mode(ColorModes mode) SchemeColor
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scheme(ColorSchemes scheme) KindColor
inherited
state(ColorStates state) LayerColor
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited