withWhite method

Color withWhite(
  1. int add
)

⬜ With White

Color.withWhite(int add)
// Brightens Color's RGB values by `add` (result <= 255)

Implementation

Color withWhite(int add) => Color.fromARGB(
      alpha,
      (red + add)._clamp,
      (green + add)._clamp,
      (blue + add)._clamp,
    );