swatch property
MaterialColor
get
swatch
Get the swatch of the color
Implementation
MaterialColor get swatch => Colors.primaries.firstWhere(
(Color c) => c.r == r && c.g == g && c.b == b && c.a == a,
orElse: () => MaterialColor(
(a.toInt() << 24) | (r.toInt() << 16) | (g.toInt() << 8) | b.toInt(),
getMaterialColorValues));