hex function

Color hex(
  1. String xxxxxx
)

6 digit hex color. The use if # is not required but optional.

hex('f5f5f5') // or
hex('#f5f5f5')

Implementation

Color hex(String xxxxxx) {
  return HexColor(xxxxxx);
}