sameColor method
Returns same color as the mode.
Implementation
Color sameColor() {
return palette.brightness() == Brightness.light
? palette.white()
: palette.black();
}
Returns same color as the mode.
Color sameColor() {
return palette.brightness() == Brightness.light
? palette.white()
: palette.black();
}