segments property

List<GlassSegment> segments
final

List of segments to display.

Each GlassSegment may have a GlassSegment.label, a GlassSegment.icon, or both. In fixed mode (default), all segments are equal-width. In scrollable mode segments have natural widths and scroll horizontally.

Minimum 2 segments required (fixed mode), 1 segment (scrollable mode).

Implementation

final List<GlassSegment> segments;