UTabBar constructor
const
UTabBar({
- required List<
UTab> tabs, - required int selectedIndex,
- required ValueChanged<
int> onSelect, - required ValueChanged<
int> onClose, - Key? key,
- void onReorder()?,
- void onMenuAction(
- UTabMenuAction action,
- int index
- UTabBarTheme? theme,
- bool enableReorder = true,
- bool enableContextMenu = true,
- bool showOverflowMenu = true,
- Map<
UTabMenuAction, String> closeLabels = const <UTabMenuAction, String>{}, - Widget? leading,
- Widget? trailing,
Implementation
const UTabBar({
required this.tabs,
required this.selectedIndex,
required this.onSelect,
required this.onClose,
super.key,
this.onReorder,
this.onMenuAction,
this.theme,
this.enableReorder = true,
this.enableContextMenu = true,
this.showOverflowMenu = true,
this.closeLabels = const <UTabMenuAction, String>{},
this.leading,
this.trailing,
});