toMapboxColor static method

int toMapboxColor(
  1. Color color
)

Converts a Flutter Color to a Mapbox-compatible integer value

Implementation

static int toMapboxColor(Color color) {
  return ((color.alpha & 0xff) << 24) |
         ((color.red & 0xff) << 16) |
         ((color.green & 0xff) << 8) |
         (color.blue & 0xff);
}