void save()

Synchronously saves the nodes.json file.

Source

void save() {
  if (_nodesFile != null && provider != null) {
    if (provider is! SerializableNodeProvider) {
      return;
    }

    _nodesFile.writeAsStringSync(
      DsJson.encode(
        (provider as SerializableNodeProvider).save(),
        pretty: encodePrettyJson)
    );
  }
}