Color.hex constructor

const Color.hex(
  1. String hex
)

Constructs a Color from a hex string. Must start with a '#' and contain up to 6 hex characters.

Implementation

const factory Color.hex(String hex) = _HexColor;