getAllChildren method

Stream<VEntity> getAllChildren(
  1. List<VEntity> roots
)

Implementation

Stream<VEntity> getAllChildren(List<VEntity> roots) async* {
  for (VEntity root in roots) {
    if (root is VFolder) {
      yield* getAllChildren(await getChildren(root).toList());
    }
    yield root;
  }
}