withAlpha method

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

Returns this HsbColor modified with the provided alpha value.

Implementation

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