materialAccent method Null safety

MaterialAccentColor materialAccent(
  1. Color color,
  2. {SwatchMode mode = SwatchMode.shade,
  3. 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);