GlassRating constructor
Creates a star rating; count and size must be positive and spacing not negative.
Implementation
const GlassRating({
super.key,
required this.value,
required this.onChanged,
this.count = 5,
this.allowHalf = false,
this.size = 28,
this.spacing = 4,
this.color,
this.emptyColor,
this.semanticLabel,
this.focusNode,
this.autofocus = false,
}) : assert(count > 0),
assert(size > 0),
assert(spacing >= 0);