applyColorTransformation method

Color applyColorTransformation(
  1. Color color
)

Apply the darkMode if set to true otherwise return the color

When using darkMode, the color is transformed by using Color.invertAndPreserve

Implementation

Color applyColorTransformation(Color color) {
  if (darkMode) {
    return color.invertAndPreserve();
  } else {
    return color;
  }
}