generateDarkerMaterialColor static method
Implementation
static MaterialColor generateDarkerMaterialColor(Color color) {
return MaterialColor(
color.value,
{
0: color,
50: getDarkerColor(color, 5),
100: getDarkerColor(color, 10),
200: getDarkerColor(color, 15),
300: getDarkerColor(color, 20),
400: getDarkerColor(color, 25),
500: getDarkerColor(color, 35),
600: getDarkerColor(color, 50),
700: getDarkerColor(color, 65),
800: getDarkerColor(color, 80),
900: getDarkerColor(color, 100),
},
);
}