getChildSpaces method

Future<List<SpaceResponse>> getChildSpaces(
  1. String parentPath, {
  2. bool recursive = false,
})
inherited

Lists child spaces under a parent path.

parentPath is the path to list children from. Use an empty string to list root-level spaces. Set recursive to true to include all nested spaces.

Implementation

Future<List<SpaceResponse>> getChildSpaces(
  String parentPath, {
  bool recursive = false,
}) async {
  final request = GetChildSpacesRequest()
    ..parentPath = parentPath
    ..recursive = recursive;
  final response = await stub.getChildSpaces(request, options: callOptions);
  return response.spaces;
}