hexString property

String get hexString

Returns this as a string in #rrggbb or #rrggbbaa hex notation.

Implementation

String get hexString =>
    '#${_toHex(red)}${_toHex(green)}${_toHex(blue)}${alpha == 1 ? '' : '${_toHex(255 * alpha)}'}';