JsonCard constructor

JsonCard({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. bool borderOnForeground = true,
  4. Clip? clipBehavior,
  5. Color? color,
  6. double? elevation,
  7. EdgeInsetsGeometry? margin,
  8. bool semanticContainer = true,
  9. Color? shadowColor,
  10. ShapeBorder? shape,
  11. Color? surfaceTintColor,
  12. JsonWidgetData? child,
})

Implementation

JsonCard({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.borderOnForeground = true,
  this.clipBehavior,
  this.color,
  this.elevation,
  this.margin,
  this.semanticContainer = true,
  this.shadowColor,
  this.shape,
  this.surfaceTintColor,
  this.child,
}) : super(
        jsonWidgetArgs: JsonCardBuilderModel.fromDynamic(
          {
            'borderOnForeground': borderOnForeground,
            'clipBehavior': clipBehavior,
            'color': color,
            'elevation': elevation,
            'margin': margin,
            'semanticContainer': semanticContainer,
            'shadowColor': shadowColor,
            'shape': shape,
            'surfaceTintColor': surfaceTintColor,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonCardBuilder(
          args: JsonCardBuilderModel.fromDynamic(
            {
              'borderOnForeground': borderOnForeground,
              'clipBehavior': clipBehavior,
              'color': color,
              'elevation': elevation,
              'margin': margin,
              'semanticContainer': semanticContainer,
              'shadowColor': shadowColor,
              'shape': shape,
              'surfaceTintColor': surfaceTintColor,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonCardBuilder.kType,
      );