Converters extension

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

on

Methods

toColorRgb() ColorRgb
Converts a Flutter Color object to a ColorRgb object.
toColorXy() ColorXy
Converts a Flutter Color object to a ColorXy object.
toHex() String
Converts a Flutter Color object to a hex string.
toHsl() List<double>
Converts a Flutter Color object to HSL values.
toHsv() List<double>
Converts a Flutter Color object to HSV values.
toInt() int
Converts a Flutter Color object to an integer.
toRgb() List<int>
Converts a Flutter Color object to RGB values.
toXy() List<double>
Converts a Flutter Color object to xy coordinates in the CIE 1931 color space.