WebPageControllerWrapper constructor

WebPageControllerWrapper({
  1. List<Widget>? persistentFooterButtons(
    1. BuildContext context
    )?,
  2. Widget? drawer(
    1. BuildContext context
    )?,
  3. DrawerCallback? onDrawerChanged(
    1. BuildContext context
    )?,
  4. Widget? endDrawer(
    1. BuildContext context
    )?,
  5. DrawerCallback? onEndDrawerChanged(
    1. BuildContext context
    )?,
  6. Widget? bottomNavigationBar(
    1. BuildContext context
    )?,
  7. Widget? bottomSheet(
    1. BuildContext context
    )?,
  8. PreferredSizeWidget? appBar,
  9. Color? backgroundColor,
  10. bool? resizeToAvoidBottomInset,
  11. bool? primary,
  12. DragStartBehavior? drawerDragStartBehavior,
  13. bool? extendBody,
  14. bool? extendBodyBehindAppBar,
  15. Color? drawerScrimColor,
  16. double? drawerEdgeDragWidth,
  17. bool? drawerEnableOpenDragGesture,
  18. bool? endDrawerEnableOpenDragGesture,
  19. String? restorationId,
  20. ScrollPhysics? physics,
})

Many are Scaffold widget options.

Implementation

WebPageControllerWrapper({
  List<Widget>? Function(BuildContext context)? persistentFooterButtons,
  Widget? Function(BuildContext context)? drawer,
  DrawerCallback? Function(BuildContext context)? onDrawerChanged,
  Widget? Function(BuildContext context)? endDrawer,
  DrawerCallback? Function(BuildContext context)? onEndDrawerChanged,
  Widget? Function(BuildContext context)? bottomNavigationBar,
  Widget? Function(BuildContext context)? bottomSheet,
  PreferredSizeWidget? appBar,
  Color? backgroundColor,
  bool? resizeToAvoidBottomInset,
  bool? primary,
  DragStartBehavior? drawerDragStartBehavior,
  bool? extendBody,
  bool? extendBodyBehindAppBar,
  Color? drawerScrimColor,
  double? drawerEdgeDragWidth,
  bool? drawerEnableOpenDragGesture,
  bool? endDrawerEnableOpenDragGesture,
  String? restorationId,
  ScrollPhysics? physics,
}) : super(
        appBar: appBar,
        backgroundColor: backgroundColor,
        resizeToAvoidBottomInset: resizeToAvoidBottomInset,
        primary: primary,
        drawerDragStartBehavior: drawerDragStartBehavior,
        extendBody: extendBody,
        extendBodyBehindAppBar: extendBodyBehindAppBar,
        drawerScrimColor: drawerScrimColor,
        drawerEdgeDragWidth: drawerEdgeDragWidth,
        drawerEnableOpenDragGesture: drawerEnableOpenDragGesture,
        endDrawerEnableOpenDragGesture: endDrawerEnableOpenDragGesture,
        restorationId: restorationId,
        physics: physics,
      ) {
  _persistentFooterButtons = persistentFooterButtons;
  _drawer = drawer;
  _onDrawerChanged = onDrawerChanged;
  _endDrawer = endDrawer;
  _onEndDrawerChanged = onEndDrawerChanged;
  _bottomNavigationBar = bottomNavigationBar;
  _bottomSheet = bottomSheet;
}