toHex method Null safety

String toHex()

hex string

Implementation

String toHex() {
  return "#${_intToHex(_color!.red)}${_intToHex(_color!.green)}${_intToHex(_color!.blue)}";
}