toSegment method
Implementation
ButtonSegment<T> toSegment(Segment<T> s) => ButtonSegment<T>(
value: s.value,
icon: s.icon == null ? null : Icon(s.icon, size: 18),
label: Text(s.label),
tooltip: s.tooltip,
enabled: s.enabled,
);