ThemedColor class

A ThemedValue that resolves to Color.

final textColor = ThemedColor(Colors.white, Colors.black);

color.getValue(Brightness.dark); // Colors.black
color.getValue(Brightness.light); // Colors.white

Constructors

ThemedColor(Color dark, Color light)
const

Properties

dark Color
The value that should be used to when the dark theme is used.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
light Color
The value that should be used to when the light theme is used.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getValue(Brightness brightness) Color
inherited
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