getCollection method

Future<Collection?> getCollection()

Implementation

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