getCollectionById<D> method Null safety

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

getCollectionById finds a single Collection by its id (case insensitive).

Implementation

CollectionOrm<D> getCollectionById<D>(String name) =>
    _collectionsById[name.toLowerCase()] as CollectionOrm<D>;