GlassSegment constructor
const
GlassSegment({})
Creates a segment configuration.
At least one of icon or label must be provided.
Implementation
const GlassSegment({
this.icon,
this.label,
this.id,
this.tooltip,
this.semanticLabel,
this.enabled = true,
}) : assert(
icon != null || label != null,
'GlassSegment must have either an icon or a label.',
);