randomColorScheme function

ColorScheme randomColorScheme(
  1. {int? seed,
  2. bool isDark = true,
  3. bool shouldPrint = true}
)

Method to generate a random Color Scheme that's either light or dark.

Implementation

ColorScheme randomColorScheme(
    {int? seed, bool isDark = true, bool shouldPrint = true}) {
  if (isDark) {
    return randomColorSchemeDark(seed: seed, shouldPrint: shouldPrint);
  } else {
    return randomColorSchemeLight(seed: seed, shouldPrint: shouldPrint);
  }
}