generateLighterMaterialColor static method

MaterialColor generateLighterMaterialColor(
  1. Color color
)

Implementation

static MaterialColor generateLighterMaterialColor(Color color) {
  return MaterialColor(
    color.value,
    <int, Color>{
      0: color,
      50: getLighterColor(color, 5),
      100: getLighterColor(color, 10),
      200: getLighterColor(color, 15),
      300: getLighterColor(color, 20),
      400: getLighterColor(color, 25),
      500: getLighterColor(color, 35),
      600: getLighterColor(color, 50),
      700: getLighterColor(color, 65),
      800: getLighterColor(color, 80),
      900: getLighterColor(color, 100),
    },
  );
}