createChild method

SimpleNode createChild(
  1. String name, [
  2. Map? m
])

Creates a child with the given name. If m is specified, the node is loaded with that map.

Implementation

SimpleNode createChild(String name, [Map? m]) {
  var tp = Path(path).child(name).path;
  return provider.addNode(tp, m ?? <String, dynamic>{}) as SimpleNode;
}