ColorSortingProperty enum

The properties of a color that can be used for sorting.

Used by ColorPalette's sortBy method.

Inheritance

Constructors

ColorSortingProperty()
const

Values

brightest → const ColorSortingProperty

Sorts the colors in the palette from the highest perceived brightness value to the lowest.

dimmest → const ColorSortingProperty

Sorts the colors in the palette from the lowest perceived brightness value to the highest.

lightest → const ColorSortingProperty

Sorts the colors in the palette from the highest lightness value to the lowest.

darkest → const ColorSortingProperty

Sorts the colors in the palette from the lowest lightness value to the highest.

mostIntense → const ColorSortingProperty

Sorts the colors in the palette from the highest intensity value to the lowest.

leastIntense → const ColorSortingProperty

Sorts the colors in the palette from the lowest intensity value to the highest.

deepest → const ColorSortingProperty

Sorts the colors in the palette from the highest saturation value to the lowest.

dullest → const ColorSortingProperty

Sorts the colors in the palette from the lowest saturation value to the highest.

richest → const ColorSortingProperty

Sorts the colors in the palette from the highest combined saturation and brightness values to the lowest.

muted → const ColorSortingProperty

Sorts the colors in the palette from the lowest combined saturation and brightness values to the highest.

red → const ColorSortingProperty

Sorts the colors by their distance to a red hue. (0°)

Note: To sort colors by their hue from red going in a single direction around the color wheel, use sortByHue(0).

redOrange → const ColorSortingProperty

Sorts the colors by their distance to a red-orange hue. (30°)

Note: To sort colors by their hue from red-orange going in a single direction around the color wheel, use sortByHue(30).

orange → const ColorSortingProperty

Sorts the colors by their distance to a orange hue. (60°)

Note: To sort colors by their hue from orange going in a single direction around the color wheel, use sortByHue(60).

yellowOrange → const ColorSortingProperty

Sorts the colors by their distance to a yellow-orange hue. (90°)

Note: To sort colors by their hue from yellow-orange going in a single direction around the color wheel, use sortByHue(90).

yellow → const ColorSortingProperty

Sorts the colors by their distance to a yellow hue. (120°)

Note: To sort colors by their hue from yellow going in a single direction around the color wheel, use sortByHue(120).

yellowGreen → const ColorSortingProperty

Sorts the colors by their distance to a yellow-green hue. (150°)

Note: To sort colors by their hue from yellow-green going in a single direction around the color wheel, use sortByHue(150).

green → const ColorSortingProperty

Sorts the colors by their distance to a green hue. (180°)

Note: To sort colors by their hue from green going in a single direction around the color wheel, use sortByHue(180).

cyan → const ColorSortingProperty

Sorts the colors by their distance to a cyan hue. (210°)

Note: To sort colors by their hue from cyan going in a single direction around the color wheel, use sortByHue(210).

blue → const ColorSortingProperty

Sorts the colors by their distance to a blue hue. (240°)

Note: To sort colors by their hue from blue going in a single direction around the color wheel, use sortByHue(240).

blueViolet → const ColorSortingProperty

Sorts the colors by their distance to a blue-violet hue. (270°)

Note: To sort colors by their hue from blue-violet going in a single direction around the color wheel, use sortByHue(270).

violet → const ColorSortingProperty

Sorts the colors by their distance to a violet hue. (300°)

Note: To sort colors by their hue from violet going in a single direction around the color wheel, use sortByHue(300).

magenta → const ColorSortingProperty

Sorts the colors by their distance to a magenta hue. (330°)

Note: To sort colors by their hue from magenta going in a single direction around the color wheel, use sortByHue(330).

similarity → const ColorSortingProperty

Sorts the colors from the first color in the palette in the order of the values closest to the previous colors' values.

difference → const ColorSortingProperty

Sorts the colors from the first color in the palette in the order of the values furthest to the previous colors' values.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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

Constants

values → const List<ColorSortingProperty>
A constant List of the values in this enum, in order of their declaration.