Skip to content

Commit 61b2688

Browse files
committed
Fix: improve activateSystemCursor to use a local variable for kind
1 parent c62a55e commit 61b2688

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎engine/src/flutter/lib/web_ui/lib/src/engine/platform_dispatcher.dart‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,9 @@ class EnginePlatformDispatcher extends ui.PlatformDispatcher {
589589
final arguments = decoded.arguments as Map<dynamic, dynamic>;
590590
switch (decoded.method) {
591591
case 'activateSystemCursor':
592+
final String? kind = arguments.tryString('kind');
592593
for (final EngineFlutterView view in views) {
593-
view.mouseCursor.activateSystemCursor(arguments.tryString('kind'));
594+
view.mouseCursor.activateSystemCursor(kind);
594595
}
595596
}
596597
return;

0 commit comments

Comments
 (0)