getCollectionMetadata method

DataCollection? getCollectionMetadata(
  1. String collection
)

Implementation

DataCollection? getCollectionMetadata(String collection) {
  final index = _collections.indexWhere(
    (element) => element.name == collection,
  );
  if (index != -1) {
    return _collections[index];
  } else {
    return null;
  }
}