KeyedTabBarView<K> constructor

KeyedTabBarView<K>({
  1. required Map<K, Widget> children,
  2. required KeyedTabController<K> controller,
  3. ScrollPhysics? physics,
  4. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  5. double viewportFraction = 1.0,
  6. Clip clipBehavior = Clip.hardEdge,
})

Implementation

KeyedTabBarView({
  required Map<K, Widget> children,
  required KeyedTabController<K> controller,
  super.physics,
  super.dragStartBehavior,
  super.viewportFraction,
  super.clipBehavior,
}) : super(
        key: ValueKey('${controller.keys}'), // Re-creates PageController.
        children: controller.mapToList(children),
        controller: controller,
      );