RASegmentedSwitch constructor
const
RASegmentedSwitch({
- required List<
RASegmentedSwitchItem> items, - required ValueChanged<
int> onTap, - int initialIndex = 0,
- RASegmentedSwitchSize size = RASegmentedSwitchSize.medium,
- TextStyle? selectedLabelStyle,
- TextStyle? unselectedLabelStyle,
- int? minScrollableItems,
- double? borderRadius,
- Color? backgroundColor,
- Color? indicatorColor,
- Color? shadowColor,
- Key? key,
Implementation
const RASegmentedSwitch({
required this.items,
required this.onTap,
this.initialIndex = 0,
this.size = RASegmentedSwitchSize.medium,
this.selectedLabelStyle,
this.unselectedLabelStyle,
this.minScrollableItems,
this.borderRadius,
this.backgroundColor,
this.indicatorColor,
this.shadowColor,
super.key,
});