Get the hex code for the color.
color
# is added to the start of the hex code.
#
static String hexFromColor({Color? color}) => (color != null) ? "#${color.hex}" : "";