copyWith method

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

Implementation

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