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:

Constructors

PaletteColor(Color color, int population)
Generate a PaletteColor. [...]

Properties

bodyTextColor → Color
The color of body text for use with this palette color.
read-only
color → Color
The color that this palette color represents.
final
hashCode → int
The hash code for this object. [...]
read-only
population → int
The number of pixels in the source image that this palette color represents.
final
titleTextColor → Color
The color of title text for use with this palette color.
read-only
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.debug }) → String
Returns 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 ==(dynamic other) → bool
The equality operator. [...]