PrimaryColor class abstract

Primary color used for color scheme.

Annotations

Constructors

PrimaryColor({Brightness brightness = Brightness.dark, required String name})
Creates a PrimaryColor.
const

Properties

b30 Color
Dark theme color with index 30.
no setter
b40 Color
Dark theme color with index 40.
no setter
b50 Color
Dark theme color with index 50.
no setter
b60 Color
Dark theme color with index 60.
no setter
b70 Color
Dark theme color with index 70.
no setter
brightness Brightness
The Brightness of the primary color.
final
color Color
Returns the color with difference in lightness.
no setter
hashCode int
The hash code for this object.
no setteroverride
name String
The name of the primary color.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
w30 Color
Light theme color with index 30.
no setter
w40 Color
Light theme color with index 40.
no setter
w50 Color
Light theme color with index 50.
no setter
w60 Color
Light theme color with index 60.
no setter
w70 Color
Light theme color with index 70.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
withBrightness(Brightness brightness) PrimaryColor
Used by ColorScheme to return a color with current brightness.

Operators

operator ==(covariant PrimaryColor other) bool
The equality operator.
override
operator [](int index) Color
Returns a primary color.