createRevision method
Creates a new revision of this item.
If number is provided, the revision is created with that explicit
number; otherwise the next available number is assigned by the server.
final v1 = await item.createRevision(metadata: {'notes': 'Initial'});
final v5 = await item.createRevision(number: 5);
Implementation
Future<Revision> createRevision({
Map<String, String>? metadata,
int? number,
}) async {
final response = await client.createRevision(
kref.uri,
metadata: metadata,
number: number,
);
return Revision(response, client);
}