getCollection<T> method

IsarCollection<T> getCollection<T>(
  1. String name
)

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';
  }
}