putPath method

Future<void> putPath(
  1. List<String> fullPath,
  2. dynamic data, [
  3. TTMsgCb? cb,
  4. UUIDFuncType? uuidFn,
])

Write graph data to a potentially multi-level deep path in the graph

@param path The path to read @param data The value to write @param cb Callback function to be invoked for write acks @returns a promise

Implementation

Future<void> putPath(final List<String> fullPath, TTValue data,
    [TTMsgCb? cb, UUIDFuncType? uuidFn]) async {
  uuidFn ??= _internalUUIdFn;
  if (fullPath.isEmpty) {
    throw ("No path specified");
  }

  TTGraphData graph = _getPutPathTTGraph(fullPath, data);

  put(graph, cb);
}