-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
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 have an error using the null safety version #13
Comments
The problem seems to be related to this line taken out of the official documentation:
If you look at the error message, it tells you that types
Edit: fixed wording. |
I tried that but I can't figure out what createCluster should return if cluster equals null |
Same here, did you find any solution. |
I solved it this way: I added an if to check if the cluster == null and in that case I return a mapmarker without assigning values. The only value I pass is the id because in my constructor is required
|
@alfonsocejudo Can you maybe update the documentation and elaborate on how to use it if the cluster is nil ? |
Whats wrong? |
I have an error using the null safety version
E/flutter ( 687): [ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: type '(BaseCluster, double, double) => MapMarker' is not a subtype of type '((BaseCluster?, double?, double?) => MapMarker)?'
I initialised the cluster in this way:
Do you know what the problem is?
Originally posted by @PaoloP98 in #12 (comment)
The text was updated successfully, but these errors were encountered: