toScaffold method

Scaffold toScaffold(
  1. Widget body
)

Converts the configuration into a fully constructed Scaffold widget.

This method uses the current ScaffoldConfig to create a Scaffold widget and inject the provided body widget as the main content of the scaffold.

Returns:

  • A Scaffold widget based on the provided configuration.

Implementation

Scaffold toScaffold(Widget body) {
  return Scaffold(
    key: key,
    appBar: appBar,
    body: body,
    floatingActionButton: floatingActionButton,
    floatingActionButtonLocation: floatingActionButtonLocation,
    floatingActionButtonAnimator: floatingActionButtonAnimator,
    persistentFooterButtons: persistentFooterButtons,
    drawer: drawer,
    onDrawerChanged: onDrawerChanged,
    endDrawer: endDrawer,
    onEndDrawerChanged: onEndDrawerChanged,
    bottomNavigationBar: bottomNavigationBar,
    bottomSheet: bottomSheet,
    backgroundColor: backgroundColor,
    resizeToAvoidBottomInset: resizeToAvoidBottomInset,
    primary: primary,
    drawerDragStartBehavior: drawerDragStartBehavior,
    extendBody: extendBody,
    extendBodyBehindAppBar: extendBodyBehindAppBar,
    drawerScrimColor: drawerScrimColor,
    drawerEdgeDragWidth: drawerEdgeDragWidth,
    drawerEnableOpenDragGesture: drawerEnableOpenDragGesture,
    endDrawerEnableOpenDragGesture: endDrawerEnableOpenDragGesture,
    restorationId: restorationId,
  );
}