BaseSegmentBar constructor

BaseSegmentBar({
  1. required List<String> titleNames,
  2. required dynamic onSelectChanged(
    1. int
    ),
  3. Color defaultColor = Colors.white,
  4. Color? selectedColor,
  5. double textSize = 14,
  6. double itemHeight = 30,
  7. double itemWidth = 110,
  8. double borderWidth = 1,
  9. Color? borderColor,
  10. double radius = 5,
  11. int selectIndex = 0,
  12. EdgeInsetsGeometry margin = const EdgeInsets.only(top: 5, bottom: 5),
})

Implementation

BaseSegmentBar(
    {required this.titleNames,
    required this.onSelectChanged,
    this.defaultColor = Colors.white,
    this.selectedColor,
    this.textSize = 14,
    this.itemHeight = 30,
    this.itemWidth = 110,
    this.borderWidth = 1,
    this.borderColor,
    this.radius = 5,
    this.selectIndex = 0,
    this.margin = const EdgeInsets.only(top: 5, bottom: 5)});