ColorSet.ofSomeRandomDarkColor constructor

ColorSet.ofSomeRandomDarkColor()

Factory method to create a ColorSet from a random dark background or surface color.

Implementation

factory ColorSet.ofSomeRandomDarkColor() {
  Color backgroundColor = randomDarkColor();
  return ColorSet.of(backgroundColor);
}