materialColor static method

MaterialColor materialColor(
  1. Color color, {
  2. SwatchMode mode = SwatchMode.shade,
  3. double? factor,
})

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);