Skip to content

Commit

Permalink
Update get_it_impl.dart to dispose in reverse order
Browse files Browse the repository at this point in the history
  • Loading branch information
bvoq authored Nov 21, 2023
1 parent df3fc43 commit 5d955d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get_it_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ class _Scope {

Future<void> reset({required bool dispose}) async {
if (dispose) {
for (final factory in allFactories) {
for (final factory in allFactories.reversed) {
await factory.dispose();
}
}
Expand Down

0 comments on commit 5d955d1

Please sign in to comment.