materialColor static method
Accepts a Color
and returns a MaterialColor whose primary is the
provided color
and whose swatch
is generated according to mode
and factor
.
Implementation
static MaterialColor materialColor(
Color color, {
SwatchMode mode = SwatchMode.shade,
double? factor,
}) =>
materialPrimaryFrom(color, mode, factor);