GlassColorSwatches constructor
Creates colour swatches; labels, if given, must have one per colour.
Implementation
const GlassColorSwatches({
super.key,
required this.colors,
required this.value,
required this.onChanged,
this.size = 28,
this.spacing = 12,
this.labels,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
}) : assert(size > 0),
assert(labels == null || labels.length == colors.length);