project method
- String name
Gets a project by name and returns a Project model, or null if no
project with that name exists.
Mirrors Python's get_project, which returns Optional[Project].
final project = await client.project('film-2024');
final spaces = await project?.getSpaces();
Implementation
Future<models.Project?> project(String name) async {
final projectList = await getProjects();
for (final pb in projectList) {
if (pb.name == name) {
return models.Project(pb, this);
}
}
return null;
}