withRed method

int withRed(
  1. int r
)

Returns a new ARGB integer with the updated red value (0-255).

Implementation

int withRed(int r) => (this & 0xFF00FFFF) | ((r & 0xFF) << 16);