Hct.fromColor constructor

Hct.fromColor(
  1. Color color, {
  2. ColorModel model = ColorModel.kDefault,
})

Implementation

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