fromColor function

String fromColor(
  1. Color? color
)

Implementation

String fromColor(Color? color) {
  if (color == null) return 'rgb(0,0,0)';
  return 'rgb(${color.red},${color.green},${color.blue})';
}