contrastColor method
Returns alternate color to the mode.
Implementation
Color contrastColor() {
return palette.brightness() == Brightness.light
? palette.black()
: palette.white();
}
Returns alternate color to the mode.
Color contrastColor() {
return palette.brightness() == Brightness.light
? palette.black()
: palette.white();
}