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