getAll<T> method
Gets all the mapped instances of the given type and additional parameters
Implementation
Iterable<T> getAll<T>({
Map<String, dynamic>? additionalParameters,
}) {
final keyForType = _makeKeyPrefix(T);
return _factories.entries //
.where(
(entry) => entry.key.startsWith(keyForType),
) //
.map(
(entry) => entry.value.get(this, additionalParameters) as T,
);
}