MSegSingleBtn<T> constructor

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

Implementation

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