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