disabledChildren property
final
The set of identifying keys that correspond to the segments that should be disabled.
Disabled children cannot be selected by dragging, but they can be selected programmatically. For example, if the groupValue is set to a disabled segment, the segment is still selected but the segment content looks disabled.
If an enabled segment is selected by dragging gesture and becomes disabled before dragging finishes, onValueChanged will be triggered when finger is released and the disabled segment is selected.
By default, all segments are selectable.
Implementation
final Set<T> disabledChildren;