colorHex property

String get colorHex

Return 'none' if _color is null, black if not match for safety

Implementation

String get colorHex =>
    _assertHexString(_color) || _color == 'none' ? _color : black.colorHex;