SegSingleBtn<T> constructor

const SegSingleBtn<T>(
  1. {Key? key,
  2. ButtonStyle? style,
  3. required void onSelect(
    1. T res
    ),
  4. required List<({Icon? icon, String label, T value})> segments,
  5. required T initialSelection}
)

Implementation

const SegSingleBtn(
    {super.key,
    this.style,
    required this.onSelect,
    required this.segments,
    required this.initialSelection});