You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After migrating to Dart2, there are "invalid cast" errors being thrown when using the Dart Google API clients to call the server.
It stems from trying to implicitly downcast a generic Map to a Map<String, List<String>> on line 66 in clients.dart:
type '_InternalLinkedHashMap<dynamic, dynamic>' is not a subtype of type 'Map<String, List<String>>' where
_InternalLinkedHashMap is from dart:collection
Map is from dart:core
String is from dart:core
List is from dart:core
String is from dart:core
#0 ApiRequester.request (package:_discoveryapis_commons/src/clients.dart:66)
#1 PeopleConnectionsResourceApi.list (package:googleapis/people/v1.dart:982)
The text was updated successfully, but these errors were encountered:
After migrating to Dart2, there are "invalid cast" errors being thrown when using the Dart Google API clients to call the server.
It stems from trying to implicitly downcast a generic
Map
to aMap<String, List<String>>
on line 66 in clients.dart:The text was updated successfully, but these errors were encountered: