MaterialColor constructor Null safety

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

Implementation

const factory MaterialColor(final int value, final Map<int, Color> swatch) =
    _$MaterialColor;