JsonCustomScrollView constructor

JsonCustomScrollView({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. double anchor = 0.0,
  4. double? cacheExtent,
  5. Key? center,
  6. Clip clipBehavior = Clip.hardEdge,
  7. ScrollController? controller,
  8. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  9. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  10. ScrollPhysics? physics,
  11. bool? primary,
  12. String? restorationId,
  13. bool reverse = false,
  14. ScrollBehavior? scrollBehavior,
  15. Axis scrollDirection = Axis.vertical,
  16. int? semanticChildCount,
  17. bool shrinkWrap = false,
  18. List<JsonWidgetData> slivers = const <JsonWidgetData>[],
})

Implementation

JsonCustomScrollView({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.anchor = 0.0,
  this.cacheExtent,
  this.center,
  this.clipBehavior = Clip.hardEdge,
  this.controller,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.physics,
  this.primary,
  this.restorationId,
  this.reverse = false,
  this.scrollBehavior,
  this.scrollDirection = Axis.vertical,
  this.semanticChildCount,
  this.shrinkWrap = false,
  this.slivers = const <JsonWidgetData>[],
}) : super(
        jsonWidgetArgs: JsonCustomScrollViewBuilderModel.fromDynamic(
          {
            'anchor': anchor,
            'cacheExtent': cacheExtent,
            'center': center,
            'clipBehavior': clipBehavior,
            'controller': controller,
            'dragStartBehavior': dragStartBehavior,
            'keyboardDismissBehavior': keyboardDismissBehavior,
            'physics': physics,
            'primary': primary,
            'restorationId': restorationId,
            'reverse': reverse,
            'scrollBehavior': scrollBehavior,
            'scrollDirection': scrollDirection,
            'semanticChildCount': semanticChildCount,
            'shrinkWrap': shrinkWrap,
            'children': slivers,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonCustomScrollViewBuilder(
          args: JsonCustomScrollViewBuilderModel.fromDynamic(
            {
              'anchor': anchor,
              'cacheExtent': cacheExtent,
              'center': center,
              'clipBehavior': clipBehavior,
              'controller': controller,
              'dragStartBehavior': dragStartBehavior,
              'keyboardDismissBehavior': keyboardDismissBehavior,
              'physics': physics,
              'primary': primary,
              'restorationId': restorationId,
              'reverse': reverse,
              'scrollBehavior': scrollBehavior,
              'scrollDirection': scrollDirection,
              'semanticChildCount': semanticChildCount,
              'shrinkWrap': shrinkWrap,
              'children': slivers,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonCustomScrollViewBuilder.kType,
      );