acceptCollection method

bool acceptCollection(
  1. String collectionName
)

returns true if the factory creates instances of atCollectionModel for the given collectionName

Implementation

bool acceptCollection(String collectionName) {
  return collectionName == T.toString().toLowerCase();
}