menu
lit_ui_kit package
documentation
lit_ui_kit.dart
ColorUtility extension
ColorUtility extension
dark_mode
light_mode
ColorUtility
extension
on
Color
Methods
applyColorByContrast
(
Color
light
,
Color
dark
)
→
Color
Returns one of the provided text colors (light and dark colors) based on the contrast each of these colors would result in if applied on in front of the main
Color
.
desat
(
double
alpha
)
→
Color
Desaturates the
Color
by the provided
alpha
value.
lit_ui_kit package
documentation
lit_ui_kit
ColorUtility extension
lit_ui_kit library