changeAlpha method Null safety

SassColor changeAlpha(
  1. num alpha
)

Returns a new copy of this color with the alpha channel set to alpha.

Implementation

SassColor changeAlpha(num alpha) => SassColor._(_red, _green, _blue, _hue,
    _saturation, _lightness, fuzzyAssertRange(alpha, 0, 1, "alpha"));