Fix JSON map type declaration for SystemChrome.setApplicationSwitcherDescription arguments (flutter/engine#26769)

This commit is contained in:
Jason Simmons 2021-06-15 17:29:01 -07:00 committed by GitHub
parent d8647f1c65
commit a52739882c

View File

@ -396,7 +396,7 @@ class EnginePlatformDispatcher extends ui.PlatformDispatcher {
callback, codec.encodeSuccessEnvelope(true));
return;
case 'SystemChrome.setApplicationSwitcherDescription':
final Map<String, Object> arguments = decoded.arguments;
final Map<String, dynamic> arguments = decoded.arguments;
// TODO: Find more appropriate defaults? Or noop when values are null?
final String label = arguments['label'] as String? ?? '';
final int primaryColor = arguments['primaryColor'] as int? ?? 0xFF000000;