copyWith method

  1. @override
JsonWidgetData copyWith({
  1. dynamic args,
  2. JsonWidgetBuilder? builder,
  3. List<JsonWidgetData>? children,
  4. Set<String>? listenVariables,
  5. String? id,
  6. dynamic originalChild,
  7. dynamic originalChildren,
  8. JsonWidgetRegistry? registry,
  9. String? type,
})
override

Implementation

@override
JsonWidgetData copyWith({
  dynamic args,
  JsonWidgetBuilder? builder,
  List<JsonWidgetData>? children,
  Set<String>? listenVariables,
  String? id,
  dynamic originalChild,
  dynamic originalChildren,
  JsonWidgetRegistry? registry,
  String? type,
}) =>
    JsonWidgetData(
      args: args ?? this.args,
      builder: builder as JsonWidgetBuilder Function()? ?? this.builder,
      children: children ?? this.children,
      listenVariables: listenVariables ?? this.listenVariables,
      id: id ?? this.id,
      originalChild: originalChild ?? this.originalChild,
      originalChildren: originalChildren ?? this.originalChildren,
      registry: registry ?? this.registry,
      type: type ?? this.type,
    );