menu
zugclient package
documentation
zug_utils.dart
HexColor extension
HexColor extension
dark_mode
light_mode
HexColor
extension
on
Color
Methods
toHex
(
{
bool
leadingHashSign
=
true
})
→
String
Available on
Color
, provided by the
HexColor
extension
Prefixes a hash sign if
leadingHashSign
is set to
true
(default is
true
).
Static Methods
fromHex
(
String
?
hexString
, {
Color
defaultColor
=
Colors.white
})
→
Color
Available on
Color
, provided by the
HexColor
extension
String is in the format "aabbcc" or "ffaabbcc" with an optional leading "#".
rndColor
(
{
dynamic
pastel
=
false
})
→
Color
Available on
Color
, provided by the
HexColor
extension
zugclient package
documentation
zug_utils
HexColor extension
zug_utils library