JsonCard constructor
JsonCard({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- bool borderOnForeground = true,
- Clip? clipBehavior,
- Color? color,
- double? elevation,
- EdgeInsetsGeometry? margin,
- bool semanticContainer = true,
- Color? shadowColor,
- ShapeBorder? shape,
- Color? surfaceTintColor,
- 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,
);