getChildren method

  1. @override
Future<Map<String, Node>> getChildren()
override

Get a map of all existing child nodes.

@return the map containing all child nodes @throws StorageException if the storage backend encounters a problem

Implementation

@override
Future<Map<String, Node>> getChildren() async {
  await _init();
  Map<String, Node> ret = {};
  if (_childNodes.isNotEmpty) {
    for (MapEntry<String, Node> entry in _childNodes.entries) {
      ret[entry.key] = await entry.value.deepClone();
    }
  }
  return ret;
}