CodeNestSegmentedBtn<T> constructor

const CodeNestSegmentedBtn<T>({
  1. Key? key,
  2. required List<ButtonSegment<T>> segments,
  3. required T selected,
  4. required ValueChanged<T> onSelectionChanged,
  5. bool multiSelection = false,
  6. Color? selectedColor,
  7. Color? unselectedColor,
  8. Color? foregroundColor,
  9. double borderRadius = 12.0,
  10. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
})

Implementation

const CodeNestSegmentedBtn({
  super.key,
  required this.segments,
  required this.selected,
  required this.onSelectionChanged,
  this.multiSelection = false,
  this.selectedColor,
  this.unselectedColor,
  this.foregroundColor,
  this.borderRadius = 12.0,
  this.padding = const EdgeInsets.symmetric(horizontal: 12, vertical: 8),
});