toHexNoAlpha method
- {bool leadingHashSign = true}
Returns this Color's hexcode without the alpha channel.
Prefixes a hash sign if leadingHashSign
is set to true (defaults to true).
Implementation
String toHexNoAlpha({bool leadingHashSign = true}) => '${leadingHashSign ? '#' : ''}'
'${red.toRadixString(16).padLeft(2, '0')}'
'${green.toRadixString(16).padLeft(2, '0')}'
'${blue.toRadixString(16).padLeft(2, '0')}';