UTabBar constructor

const UTabBar({
  1. required List<UTab> tabs,
  2. required int selectedIndex,
  3. required ValueChanged<int> onSelect,
  4. required ValueChanged<int> onClose,
  5. Key? key,
  6. void onReorder(
    1. int oldIndex,
    2. int newIndex
    )?,
  7. void onMenuAction(
    1. UTabMenuAction action,
    2. int index
    )?,
  8. UTabBarTheme? theme,
  9. bool enableReorder = true,
  10. bool enableContextMenu = true,
  11. bool showOverflowMenu = true,
  12. Map<UTabMenuAction, String> closeLabels = const <UTabMenuAction, String>{},
  13. Widget? leading,
  14. 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,
});