isHex property

bool get isHex

Whether this is a hex color.

Implementation

bool get isHex =>
    _isHexString(value.startsWith('#') ? value.substring(1) : value);