diff --git a/lib/get_it_impl.dart b/lib/get_it_impl.dart index fa35e01..03c41c1 100644 --- a/lib/get_it_impl.dart +++ b/lib/get_it_impl.dart @@ -309,7 +309,7 @@ class _Scope { Future reset({required bool dispose}) async { if (dispose) { - for (final factory in allFactories) { + for (final factory in allFactories.reversed) { await factory.dispose(); } }