space method

Future<Space> space(
  1. String path
)

Gets a space by path and returns a Space model.

final space = await client.space('/film-2024/characters');
final items = await space.getItems();

Implementation

Future<models.Space> space(String path) async {
  final response = await getSpace(path);
  return models.Space(response, this);
}