toSegment method

ButtonSegment<T> toSegment(
  1. Segment<T> s
)

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,
    );