withDefaultController<K extends Object> static method
Widget
withDefaultController<K extends Object>({
- Key? key,
- required Map<
K, Widget> children, - ScrollPhysics? physics,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- double viewportFraction = 1.0,
- Clip clipBehavior = Clip.hardEdge,
Creates the widget that will look up its controller
from the
widget tree.
Implementation
static Widget withDefaultController<K extends Object>({
Key? key,
required Map<K, Widget> children,
ScrollPhysics? physics,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
double viewportFraction = 1.0,
Clip clipBehavior = Clip.hardEdge,
}) =>
_KeyedTabBarViewWithDefaultController<K>(
key: key,
children: children,
physics: physics,
dragStartBehavior: dragStartBehavior,
viewportFraction: viewportFraction,
clipBehavior: clipBehavior,
);