Use PlatformDispatcher.instance over window where possible (#99496)
This commit is contained in:
committed by
GitHub
parent
a4aeb77876
commit
7f2c1cd772
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user