toHSLA method Null safety

List<num?> toHSLA()

get HSL with alpha

Implementation

List<num?> toHSLA() {
  return [
    _hue,
    _sat,
    _lightness,
    _color!.alpha,
  ];
}