JsonScaffold constructor

JsonScaffold({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. JsonWidgetData? appBar,
  4. Color? backgroundColor,
  5. JsonWidgetData? body,
  6. JsonWidgetData? bottomNavigationBar,
  7. JsonWidgetData? bottomSheet,
  8. JsonWidgetData? drawer,
  9. DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
  10. double? drawerEdgeDragWidth,
  11. bool drawerEnableOpenDragGesture = true,
  12. Color? drawerScrimColor,
  13. JsonWidgetData? endDrawer,
  14. bool endDrawerEnableOpenDragGesture = true,
  15. bool extendBody = false,
  16. bool extendBodyBehindAppBar = false,
  17. JsonWidgetData? floatingActionButton,
  18. FloatingActionButtonAnimator? floatingActionButtonAnimator,
  19. FloatingActionButtonLocation? floatingActionButtonLocation,
  20. void onDrawerChanged(
    1. bool
    )?,
  21. void onEndDrawerChanged(
    1. bool
    )?,
  22. AlignmentDirectional persistentFooterAlignment = AlignmentDirectional.centerEnd,
  23. List<JsonWidgetData>? persistentFooterButtons,
  24. bool primary = true,
  25. bool? resizeToAvoidBottomInset,
  26. String? restorationId,
})

Implementation

JsonScaffold({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.appBar,
  this.backgroundColor,
  this.body,
  this.bottomNavigationBar,
  this.bottomSheet,
  this.drawer,
  this.drawerDragStartBehavior = DragStartBehavior.start,
  this.drawerEdgeDragWidth,
  this.drawerEnableOpenDragGesture = true,
  this.drawerScrimColor,
  this.endDrawer,
  this.endDrawerEnableOpenDragGesture = true,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.floatingActionButton,
  this.floatingActionButtonAnimator,
  this.floatingActionButtonLocation,
  this.onDrawerChanged,
  this.onEndDrawerChanged,
  this.persistentFooterAlignment = AlignmentDirectional.centerEnd,
  this.persistentFooterButtons,
  this.primary = true,
  this.resizeToAvoidBottomInset,
  this.restorationId,
}) : super(
        jsonWidgetArgs: JsonScaffoldBuilderModel.fromDynamic(
          {
            'appBar': appBar,
            'backgroundColor': backgroundColor,
            'body': body,
            'bottomNavigationBar': bottomNavigationBar,
            'bottomSheet': bottomSheet,
            'drawer': drawer,
            'drawerDragStartBehavior': drawerDragStartBehavior,
            'drawerEdgeDragWidth': drawerEdgeDragWidth,
            'drawerEnableOpenDragGesture': drawerEnableOpenDragGesture,
            'drawerScrimColor': drawerScrimColor,
            'endDrawer': endDrawer,
            'endDrawerEnableOpenDragGesture': endDrawerEnableOpenDragGesture,
            'extendBody': extendBody,
            'extendBodyBehindAppBar': extendBodyBehindAppBar,
            'floatingActionButton': floatingActionButton,
            'floatingActionButtonAnimator': floatingActionButtonAnimator,
            'floatingActionButtonLocation': floatingActionButtonLocation,
            'onDrawerChanged': onDrawerChanged,
            'onEndDrawerChanged': onEndDrawerChanged,
            'persistentFooterAlignment': persistentFooterAlignment,
            'persistentFooterButtons': persistentFooterButtons,
            'primary': primary,
            'resizeToAvoidBottomInset': resizeToAvoidBottomInset,
            'restorationId': restorationId,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonScaffoldBuilder(
          args: JsonScaffoldBuilderModel.fromDynamic(
            {
              'appBar': appBar,
              'backgroundColor': backgroundColor,
              'body': body,
              'bottomNavigationBar': bottomNavigationBar,
              'bottomSheet': bottomSheet,
              'drawer': drawer,
              'drawerDragStartBehavior': drawerDragStartBehavior,
              'drawerEdgeDragWidth': drawerEdgeDragWidth,
              'drawerEnableOpenDragGesture': drawerEnableOpenDragGesture,
              'drawerScrimColor': drawerScrimColor,
              'endDrawer': endDrawer,
              'endDrawerEnableOpenDragGesture':
                  endDrawerEnableOpenDragGesture,
              'extendBody': extendBody,
              'extendBodyBehindAppBar': extendBodyBehindAppBar,
              'floatingActionButton': floatingActionButton,
              'floatingActionButtonAnimator': floatingActionButtonAnimator,
              'floatingActionButtonLocation': floatingActionButtonLocation,
              'onDrawerChanged': onDrawerChanged,
              'onEndDrawerChanged': onEndDrawerChanged,
              'persistentFooterAlignment': persistentFooterAlignment,
              'persistentFooterButtons': persistentFooterButtons,
              'primary': primary,
              'resizeToAvoidBottomInset': resizeToAvoidBottomInset,
              'restorationId': restorationId,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonScaffoldBuilder.kType,
      );