getCollection method
Implementation
Future<CollectionInfo?> getCollection() async {
try {
return await collections
.get(GetCollectionInfoRequest(collectionName: namespace))
.then((r) => r.hasResult() ? r.result : null);
} catch (e) {
return null;
}
}