segments property

List<ButtonSegment<T>> segments
final

Descriptions of the segments in the button.

This a required parameter and must contain at least one segment, but it is recommended to contain two to five segments. If you need only a single segment, consider using a Checkbox or Radio widget instead. If you need more than five options, consider using FilterChip or ChoiceChip widgets.

Implementation

final List<ButtonSegment<T>> segments;