Skip to content

Commit 55b3e33

Browse files
committed
Use named parameter in watchFuture example instead of underscore
Changed (_) => di.allReady(...) to (getIt) => getIt.allReady(...) for clarity
1 parent 16c7086 commit 55b3e33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code_samples/lib/watch_it/advanced_integration_patterns.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ class AppWithFullErrorHandling extends WatchingWidget {
493493
Widget build(BuildContext context) {
494494
// watchFuture gives you an AsyncSnapshot for full error control
495495
final snapshot = watchFuture<GetIt, void>(
496-
(_) => di.allReady(timeout: Duration(seconds: 30)),
496+
(getIt) => getIt.allReady(timeout: Duration(seconds: 30)),
497497
target: di,
498498
initialValue: null,
499499
);

0 commit comments

Comments
 (0)