UITabView<T> constructor

UITabView<T>(
  1. TabContext tab, {
  2. Key? key,
  3. required Widget? builder(
    1. BuildContext context,
    2. T item,
    3. Key key
    ),
  4. ScrollPhysics? physics,
  5. 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,
      );