menu
flutter_boilerplate package
documentation
app/common/utils/extensions.dart
HexColor extension
HexColor extension
dark_mode
light_mode
HexColor
extension
on
Color
Methods
toHex
(
{
bool
leadingHashSign
=
true
})
→
String
Prefixes a hash sign if
leadingHashSign
is set to
true
(default is
true
).
Static Methods
fromHex
(
String
hexString
)
→
Color
Convert HexString to flutter inbuilt colors.
flutter_boilerplate package
documentation
app/common/utils/extensions
HexColor extension
extensions library