clone method

  1. @override
WidgetNodeSpec clone()
override

Implementation

@override
WidgetNodeSpec clone() {
  final spec = extra.clone()
    ..addAll({
      "_id": id,
      "name": name,
      "_type": type,
      "_template": template,
      "properties": props.clone(),
      "actions": actions.clone(),
      "widgets": widgets.clone(),
    });
  return WidgetNodeSpec.fromMap(spec);
}