withAlpha method

  1. @override
HsiColor withAlpha(
  1. int alpha
)

Returns this HsiColor modified with the provided alpha value.

Implementation

@override
HsiColor withAlpha(int alpha) {
  assert(alpha >= 0 && alpha <= 255);
  return HsiColor(hue, saturation, intensity, alpha);
}