Skip to content
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

Fix crash in requestMyLocationLatLong due to incorrect type params #658

Closed
wants to merge 1 commit into from

Conversation

Khader-1
Copy link

It solves a null safety issue
image

Copy link
Collaborator

@shroff shroff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your approach works, but please make the change I suggested before merging

@@ -501,7 +501,7 @@ class MethodChannelMapboxGl extends MapboxGlPlatform {
@override
Future<LatLng> requestMyLocationLatLng() async {
try {
final Map<Object, Object> reply = await _channel.invokeMethod(
final Map<Object?, Object?> reply = await _channel.invokeMethod(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to use <dynamic, dynamic> as in all other method calls

@shroff shroff changed the title Update method_channel_mapbox_gl.dart Fix crash in requestMyLocationLatLong due to incorrect type params Sep 26, 2021
@AAverin AAverin mentioned this pull request Oct 9, 2021
@felix-ht
Copy link
Collaborator

resolved by #697

@felix-ht felix-ht closed this Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants