ArnaTabView constructor

ArnaTabView({
  1. Key? key,
  2. required List<ArnaTab> tabs,
  3. ArnaTabController? controller,
  4. ValueChanged<int>? onTap,
  5. ValueChanged<int>? onTabClosed,
  6. VoidCallback? onAddPressed,
  7. int currentIndex = 0,
  8. String? restorationId,
})

Creates a layout for applications with a tab bar at the top.

Implementation

ArnaTabView({
  super.key,
  required this.tabs,
  this.controller,
  this.onTap,
  this.onTabClosed,
  this.onAddPressed,
  this.currentIndex = 0,
  this.restorationId,
}) : assert(
        controller == null || controller.index < tabs.length,
        "The CupertinoTabController's current index ${controller.index} is "
        'out of bounds for the tab bar with ${tabs.length} tabs',
      );