getSpace method

Future<Space> getSpace()

Gets the space that contains this item as a Space model.

final space = await item.getSpace();
print(space.path);

Implementation

Future<Space> getSpace() async {
  final path = '/${kref.project}${spacePath.isEmpty ? '' : '/$spacePath'}';
  final response = await client.getSpace(path);
  return Space(response, client);
}