Color.material constructor Null safety

const Color.material(
  1. int value,
  2. Map<int, Color> swatch
)

Implementation

const factory Color.material(
  int value,
  Map<int, Color> swatch,
) = MaterialColor;