sameColor method

Color sameColor()

Returns same color as the mode.

Implementation

Color sameColor() {
  return palette.brightness() == Brightness.light
      ? palette.white()
      : palette.black();
}