JsonSizedBox constructor

JsonSizedBox({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. double? height,
  4. double? width,
  5. JsonWidgetData? child,
})

Implementation

JsonSizedBox({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.height,
  this.width,
  this.child,
}) : super(
        jsonWidgetArgs: JsonSizedBoxBuilderModel.fromDynamic(
          {
            'height': height,
            'width': width,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonSizedBoxBuilder(
          args: JsonSizedBoxBuilderModel.fromDynamic(
            {
              'height': height,
              'width': width,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonSizedBoxBuilder.kType,
      );