JsonPrimaryScrollController constructor

JsonPrimaryScrollController({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. required dynamic automaticallyInheritForPlatforms,
  4. required ScrollController? controller,
  5. required Axis? scrollDirection,
  6. required JsonWidgetData child,
})

Implementation

JsonPrimaryScrollController({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  required this.automaticallyInheritForPlatforms,
  required this.controller,
  required this.scrollDirection,
  required this.child,
}) : super(
        jsonWidgetArgs: JsonPrimaryScrollControllerBuilderModel.fromDynamic(
          {
            'automaticallyInheritForPlatforms':
                automaticallyInheritForPlatforms,
            'controller': controller,
            'scrollDirection': scrollDirection,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonPrimaryScrollControllerBuilder(
          args: JsonPrimaryScrollControllerBuilderModel.fromDynamic(
            {
              'automaticallyInheritForPlatforms':
                  automaticallyInheritForPlatforms,
              'controller': controller,
              'scrollDirection': scrollDirection,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonPrimaryScrollControllerBuilder.kType,
      );