Use PlatformDispatcher.instance over window where possible (#99496)

This commit is contained in:
Michael Goderbauer
2022-03-03 14:46:16 -08:00
committed by GitHub
parent a4aeb77876
commit 7f2c1cd772
38 changed files with 175 additions and 197 deletions

View File

@@ -109,7 +109,7 @@ class IOCallbackManager implements CallbackManager {
Future<dynamic> _onMethodChannelCall(MethodCall call) async {
switch (call.method) {
case 'scheduleFrame':
window.scheduleFrame();
PlatformDispatcher.instance.scheduleFrame();
break;
}
return null;