Skip to content

Fix crash in requestMyLocationLatLong due to incorrect type params - #658

Closed
Khader-1 wants to merge 1 commit into
flutter-mapbox-gl:masterfrom
Khader-1:patch-1
Closed

Khader-1 wants to merge 1 commit into
flutter-mapbox-gl:masterfrom
Khader-1:patch-1

Conversation

@Khader-1

Copy link
Copy Markdown

It solves a null safety issue
image

@shroff shroff left a comment

Copy link
Copy Markdown
Collaborator

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

Future<LatLng> requestMyLocationLatLng() async {
try {
final Map<Object, Object> reply = await _channel.invokeMethod(
final Map<Object?, Object?> reply = await _channel.invokeMethod(

Copy link
Copy Markdown
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
@tonnyavery tonnyavery mentioned this pull request Oct 9, 2021
@felix-ht

Copy link
Copy Markdown
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