CodeNestSegmentedBtn<T> constructor
const
CodeNestSegmentedBtn<T> ({
- Key? key,
- required List<
ButtonSegment< segments,T> > - required T selected,
- required ValueChanged<
T> onSelectionChanged, - bool multiSelection = false,
- Color? selectedColor,
- Color? unselectedColor,
- Color? foregroundColor,
- double borderRadius = 12.0,
- 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),
});