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 String? color(Color? color) {
if (color == null) {
return null;
}
return '0x${color.value.toRadixString(16).toUpperCase().toUpperCase()}';
}