Converts a Flutter Color object to an integer.
static int color2int(Color color) { return color.value; }