ColorSortingProperty enum Null safety

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.

const ColorSortingProperty(0)
dimmest → const ColorSortingProperty

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

const ColorSortingProperty(1)
lightest → const ColorSortingProperty

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

const ColorSortingProperty(2)
darkest → const ColorSortingProperty

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

const ColorSortingProperty(3)
mostIntense → const ColorSortingProperty

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

const ColorSortingProperty(4)
leastIntense → const ColorSortingProperty

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

const ColorSortingProperty(5)
deepest → const ColorSortingProperty

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

const ColorSortingProperty(6)
dullest → const ColorSortingProperty

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

const ColorSortingProperty(7)
richest → const ColorSortingProperty

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

const ColorSortingProperty(8)
muted → const ColorSortingProperty

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

const ColorSortingProperty(9)
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).

const ColorSortingProperty(10)
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).

const ColorSortingProperty(11)
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).

const ColorSortingProperty(12)
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).

const ColorSortingProperty(13)
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).

const ColorSortingProperty(14)
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).

const ColorSortingProperty(15)
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).

const ColorSortingProperty(16)
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).

const ColorSortingProperty(17)
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).

const ColorSortingProperty(18)
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).

const ColorSortingProperty(19)
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).

const ColorSortingProperty(20)
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).

const ColorSortingProperty(21)
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.

const ColorSortingProperty(22)
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.

const ColorSortingProperty(23)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
[brightest, dimmest, lightest, darkest, mostIntense, leastIntense, deepest, dullest, richest, muted, red, redOrange, orange, yellowOrange, yellow, yellowGreen, green, cyan, blue, blueViolet, violet, m…