SeniorTabBar constructor

const SeniorTabBar({
  1. Key? key,
  2. required List<String> tabs,
  3. required int initialIndex,
  4. required dynamic onTap(
    1. int
    ),
  5. bool isScrollable = false,
  6. TabController? controller,
  7. SeniorTabBarStyle? style,
})

Creates a SDS tab bar component.

The tabs, initialIndex and onTap parameters are required.

Implementation

const SeniorTabBar({
  Key? key,
  required this.tabs,
  required this.initialIndex,
  required this.onTap,
  this.isScrollable = false,
  this.controller,
  this.style,
}) : super(key: key);