getRed function Null safety

int getRed(
  1. int color
)

Get the red channel from the color.

Implementation

int getRed(int color) => (color) & 0xff;