We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am getting an Exception :
type '_Map<Object?, Object?>' is not a subtype of type 'Map<String, int>'
I think this is because
this line final map = Map.from(event['data']);
final map = Map.from(event['data']);
will be Map<Object?, Object?>
and you are parsing it like that :
Map<String, int> peersStatus = map["peersStatus"];
so it will throw this error.
can I make a pull request on it ?
or can I solved in other way?
The text was updated successfully, but these errors were encountered:
so, the issue is
the value returned from the map is
String, Bool
not String , int
Sorry, something went wrong.
fix: 1.5.1 crash #145 Unhandled Exception when calling onPeersOnlineS…
df4bcec
…tatusChanged #146
still get the same issue !
but with map<string,bool>
I suggest we loop over the map["peersStatus"] and cast each key, value?
feat: Flutter - Specify AreaCode in RTM #87 close #146 (#147)
c86657d
* feat: Flutter - Specify AreaCode in RTM #87 * ci: test flutter 2.5.0 * ci: fix * ci: fix * ci: fix
No branches or pull requests
I am getting an Exception :
type '_Map<Object?, Object?>' is not a subtype of type 'Map<String, int>'
I think this is because
this line
final map = Map.from(event['data']);
will be Map<Object?, Object?>
and you are parsing it like that :
Map<String, int> peersStatus = map["peersStatus"];
so it will throw this error.
can I make a pull request on it ?
or can I solved in other way?
The text was updated successfully, but these errors were encountered: