asMaterialColor property
MaterialColor
asMaterialColor
Create a MaterialColor out of this palette.
Note: shade0, shade10 and shade1000 get discarded as they are not supported in a MaterialColor.
Implementation
MaterialColor get asMaterialColor {
return MaterialColor(shade500.value, colors);
}