swatch property
MaterialColor
get
swatch
Implementation
MaterialColor get swatch =>
Colors.primaries.firstWhere((Color c) => c.value == value,
orElse: () => MaterialColor(value, getMaterialColorValues));