getAll<T> method

Iterable<T> getAll<T>({
  1. Map<String, dynamic>? additionalParameters,
})

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,
      );
}