upsertTemplate method

void upsertTemplate(
  1. Map spec
)

Implementation

void upsertTemplate(Map spec) {
  final node = WidgetNodeSpec.fromMap(spec);
  templates[node.id] = node;
}