getLatestRevision method
Gets the latest revision of this bundle.
Returns null if the bundle has no revisions, mirroring Python's
Item.get_latest_revision (which Bundle inherits).
final latest = await bundle.getLatestRevision();
Implementation
Future<Revision?> getLatestRevision() async {
final response = await client.getLatestRevision(kref.uri);
if (response == null) {
return null;
}
return Revision(response, client);
}