JsonCustomScrollView constructor
JsonCustomScrollView({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- double anchor = 0.0,
- double? cacheExtent,
- Key? center,
- Clip clipBehavior = Clip.hardEdge,
- ScrollController? controller,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- ScrollPhysics? physics,
- bool? primary,
- String? restorationId,
- bool reverse = false,
- ScrollBehavior? scrollBehavior,
- Axis scrollDirection = Axis.vertical,
- int? semanticChildCount,
- bool shrinkWrap = false,
- 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,
);