color static method
Returns a Color from the specified integer.
Returns null if it's not an integer; otherwise, passes it to the Color constructor.
Implementation
static int? color(Color? color) {
if (color == null) {
return null;
}
// return '0x${color.value.toRadixString(16).padLeft(8, '0').toUpperCase()}';
return color.value;
}