ColorSet class
ColorSet is a class that holds a surface color and the other colors that can be used on elements on the surface. It contains a background color, which is the surface color, a foreground color and a muted foreground color.
Constructors
- ColorSet(Color backgroundColor, Color foregroundColor, Color mutedForegroundColor)
- The constructor of the ColorSet class.
- ColorSet.of(Color backgroundColor)
-
Factory method to create a ColorSet from a given background or
surface color.
factory
- ColorSet.ofSomeRandomColor()
-
Factory method to create a ColorSet from a random background or
surface color.
factory
- ColorSet.ofSomeRandomDarkColor()
-
Factory method to create a ColorSet from a random dark background or
surface color.
factory
- ColorSet.ofSomeRandomLightColor()
-
Factory method to create a ColorSet from a random light background or
surface color.
factory
Properties
- backgroundColor ↔ Color
-
The background color of the surface.
getter/setter pair
- foregroundColor ↔ Color
-
The foreground color of the surface.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- mutedForegroundColor ↔ Color
-
The muted foreground color of the surface.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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