Converters extension

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

on

Methods

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 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.