Eliminate more window singleton usages (#145560)

These usages in strings slipped through the initial clean-up.
This commit is contained in:
Michael Goderbauer
2024-03-21 13:59:25 -07:00
committed by GitHub
parent 31209d04ff
commit eaf509aaf8
2 changed files with 3 additions and 3 deletions

View File

@@ -359,7 +359,7 @@ void main() {
SchedulerBinding.instance!.addTimingsCallback((List<FrameTiming> timings) {
throw 'TimingsCallback';
});
ui.window.onReportTimings!(<FrameTiming>[]);
ui.PlatformDispatcher.instance.onReportTimings!(<FrameTiming>[]);
'''
);