ArnaTabView constructor
ArnaTabView({
- Key? key,
- required List<
ArnaTab> tabs, - ArnaTabController? controller,
- ValueChanged<
int> ? onTap, - ValueChanged<
int> ? onTabClosed, - VoidCallback? onAddPressed,
- int currentIndex = 0,
- 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',
);