toColorString function

String? toColorString(
  1. Color? color
)

Implementation

String? toColorString(Color? color) {
  return color != null ? '#${color.value.toRadixString(16)}' : null;
}