UITabView<T> constructor
UITabView<T> (
- TabContext tab, {
- Key? key,
- required Widget? builder(
- BuildContext context,
- T item,
- Key key
- ScrollPhysics? physics,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
Implementation
UITabView(
this.tab, {
Key? key,
required this.builder,
ScrollPhysics? physics,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
}) : super(
key: key,
children: tab.source.mapAndRemoveEmpty(
(item) => builder.call(tab._context, item, PageStorageKey(item))),
controller: tab.controller,
physics: physics,
dragStartBehavior: dragStartBehavior,
);