getColorMode method

Color getColorMode({
  1. ColorMode mode = ColorMode.complementarycolor,
})

Implementation

Color getColorMode({
  ColorMode mode = ColorMode.complementarycolor,
}) {
  if (mode == ColorMode.textinvert) {
    return textInvert.toString() == "000000" ? black : white;
  } else if (mode == ColorMode.invertedcolor) {
    return invertedColor.toColor();
  } else if (mode == ColorMode.complementarycolor) {
    return complementaryColor.toColor();
  } else {
    return black;
  }
}