KeyedTabBarView<K> constructor
KeyedTabBarView<K> ({
- required Map<
K, Widget> children, - required KeyedTabController<
K> controller, - ScrollPhysics? physics,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- double viewportFraction = 1.0,
- 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,
);