getCollection<T> method
Get a collection by its name.
You should use the generated extension methods instead.
Implementation
IsarCollection<T> getCollection<T>(String name) {
final collection = _collections[name];
if (collection is IsarCollection<T>) {
return collection;
} else {
throw 'Unknown collection or invalid type. Make sure that you opened the collection.';
}
}