getCollection method
Implementation
Future<Collection?> getCollection() async {
try {
return databases.getCollection(
databaseId: environment.databaseId,
collectionId: environment.collectionId,
);
} catch (e) {
return null;
}
}