withAlpha method

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

Returns this LabColor modified with the provided alpha value.

Implementation

@override
LabColor withAlpha(int alpha) {
  assert(alpha >= 0 && alpha <= 255);
  return LabColor(lightness, a, b, alpha);
}