Converters extension

A class that contains all the conversions for the Color object as extensions.

on

Methods

toColorRgb() ColorRgb

Available on Color, provided by the Converters extension

Converts a Flutter Color object to a ColorRgb object.
toColorRgbNormalized() ColorRgbNormalized

Available on Color, provided by the Converters extension

Converts a Flutter Color object to a ColorRgbNormalized object.
toColorXy() ColorXy

Available on Color, provided by the Converters extension

Converts a Flutter Color object to a ColorXy object.
toHex() String

Available on Color, provided by the Converters extension

Converts a Flutter Color object to a hex string.
toHsl() List<double>

Available on Color, provided by the Converters extension

Converts a Flutter Color object to HSL values.
toHsv() List<double>

Available on Color, provided by the Converters extension

Converts a Flutter Color object to HSV values.
toInt() int

Available on Color, provided by the Converters extension

Converts a Flutter Color object to an integer.
toRgb() List<int>

Available on Color, provided by the Converters extension

Converts a Flutter Color object to RGB (0-255) values.
toRgb2() List<double>

Available on Color, provided by the Converters extension

Converts a Flutter Color object to normalized RGB (0.0-1.0) values.
toXy() List<double>

Available on Color, provided by the Converters extension

Converts a Flutter Color object to xy coordinates in the CIE 1931 color space.