SubZeroTabBarView constructor

const SubZeroTabBarView({
  1. Key? key,
  2. required List<String> tabs,
  3. required List<Widget> children,
  4. SubZeroTabVariant variant = SubZeroTabVariant.primary,
  5. bool isScrollable = false,
  6. int initialIndex = 0,
  7. ValueChanged<int>? onTabChanged,
})

Implementation

const SubZeroTabBarView({
  super.key,
  required this.tabs,
  required this.children,
  this.variant = SubZeroTabVariant.primary,
  this.isScrollable = false,
  this.initialIndex = 0,
  this.onTabChanged,
}) : assert(tabs.length == children.length);