Skip to content

Commit

Permalink
Fix mistake in resetLazySingleton method
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanbeusekom committed Dec 24, 2023
1 parent be062d5 commit 178dd6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions packages/flutter_ioc/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ version: 1.0.0
publish_to: none

dependencies:
flutter_ioc:
path: ../
flutter_ioc_get_it:
path: ../../flutter_ioc_get_it

environment:
sdk: '>=2.18.1 <3.0.0'
sdk: '>=2.18.1 <4.0.0'
2 changes: 1 addition & 1 deletion packages/flutter_ioc/lib/src/ioc_container.dart
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ abstract class IocContainer {
/// [onDispose] callback. This function overrides the disposing
/// you might have provided when registering.
FutureOr<void> resetLazySingleton<T extends Object>({
Object? instance,
T? instance,
String? instanceName,
FutureOr<void> Function(T)? onDispose,
});
Expand Down
2 changes: 1 addition & 1 deletion packages/flutter_ioc/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: 2.0.0
publish_to: none

environment:
sdk: '>=2.18.1 <3.0.0'
sdk: '>=2.18.1 <4.0.0'

dev_dependencies:
lints: ^2.0.0
Expand Down

0 comments on commit 178dd6d

Please sign in to comment.