RASegmentedSwitch constructor

const RASegmentedSwitch({
  1. required List<RASegmentedSwitchItem> items,
  2. required ValueChanged<int> onTap,
  3. int initialIndex = 0,
  4. RASegmentedSwitchSize size = RASegmentedSwitchSize.medium,
  5. TextStyle? selectedLabelStyle,
  6. TextStyle? unselectedLabelStyle,
  7. int? minScrollableItems,
  8. double? borderRadius,
  9. Color? backgroundColor,
  10. Color? indicatorColor,
  11. Color? shadowColor,
  12. 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,
});