withDefaultController<K extends Object> static method

Widget withDefaultController<K extends Object>({
  1. Key? key,
  2. required Map<K, Widget> children,
  3. ScrollPhysics? physics,
  4. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  5. double viewportFraction = 1.0,
  6. 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,
    );