Converts a Flutter Color object to an integer.
int toInt() { return ColorConverter.color2int(this); }