Hct.fromColor constructor
Hct.fromColor(
- Color color, {
- ColorModel model = ColorModel.kDefault,
Implementation
factory Hct.fromColor(Color color, {ColorModel model = ColorModel.kDefault}) {
final argb = color.argb;
return Hct._(argb, model: model);
}