File tree 1 file changed +0
-4
lines changed
flutter/lib/src/integrations/app_start
1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -27,21 +27,17 @@ class AppStartTracker {
27
27
void setAppStartInfo (AppStartInfo ? appStartInfo) {
28
28
_appStartInfo = appStartInfo;
29
29
if (! _appStartCompleter.isCompleted) {
30
- // Complete the completer with the app start info when it becomes available
31
30
_appStartCompleter.complete (appStartInfo);
32
31
} else {
33
- // If setAppStartInfo is called again, reset the completer with new app start info
34
32
_appStartCompleter = Completer <AppStartInfo ?>();
35
33
_appStartCompleter.complete (appStartInfo);
36
34
}
37
35
}
38
36
39
37
Future <AppStartInfo ?> getAppStartInfo () {
40
- // If the app start info is already set, return it immediately
41
38
if (_appStartInfo != null ) {
42
39
return Future .value (_appStartInfo);
43
40
}
44
- // Otherwise, return the future that will complete when the app start info is set
45
41
return _appStartCompleter.future;
46
42
}
47
43
}
You can’t perform that action at this time.
0 commit comments