colorToInt static method

int colorToInt(
  1. Color color
)

Implementation

static int colorToInt(Color color) =>
    _floatToInt8(color.a) << 24 |
    _floatToInt8(color.r) << 16 |
    _floatToInt8(color.g) << 8 |
    _floatToInt8(color.b) << 0;