getCollectionByName<D> method Null safety

CollectionOrm<D> getCollectionByName<D>(
  1. String name
)

getCollectionByName finds a single Collection by its name (case insensitive).

Implementation

CollectionOrm<D> getCollectionByName<D>(String name) =>
    _collectionsByName[name.toLowerCase()] as CollectionOrm<D>;