MacosTabView constructor

const MacosTabView({
  1. Key? key,
  2. required MacosTabController controller,
  3. required List<MacosTab> tabs,
  4. required List<Widget> children,
  5. MacosTabPosition position = MacosTabPosition.top,
  6. EdgeInsetsGeometry padding = const EdgeInsets.all(12.0),
})

A multipage interface that displays one page at a time.

A tab view contains a row of navigational items, tabs, that move the user through the provided views (children). The user selects the desired page by clicking the appropriate tab.

The tab controller's MacosTabController.length must equal the length of the children list and the length of the tabs list.

Implementation

const MacosTabView({
  super.key,
  required this.controller,
  required this.tabs,
  required this.children,
  this.position = MacosTabPosition.top,
  this.padding = const EdgeInsets.all(12.0),
}) : assert(controller.length == children.length &&
          controller.length == tabs.length);