PaletteColor class
A color palette color generated by the PaletteGenerator.
This palette color represents a dominant color in an image, and has a population of how many pixels in the source image it represents. It picks a titleTextColor and a bodyTextColor that contrast sufficiently with the source color for comfortable reading.
See also:
- PaletteGenerator, a class for selecting color palettes from images.
- Mixed-in types
Constructors
- PaletteColor(Color color, int population)
- Generate a PaletteColor.
Properties
- bodyTextColor → Color
-
The color of body text for use with this palette color.
no setter
- color → Color
-
The color that this palette color represents.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- population → int
-
The number of pixels in the source image that this palette color
represents.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleTextColor → Color
-
The color of title text for use with this palette color.
no setter
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override