tlserver / flutter_map_location_marker

A flutter map plugin for displaying device current location.
https://pub.dev/packages/flutter_map_location_marker
BSD 3-Clause "New" or "Revised" License
108 stars 98 forks source link

Export exceptions #111

Closed mishkov closed 7 months ago

mishkov commented 7 months ago

In my app I want to handle exceptions coming from Stream<LocationMarkerPosition?> but I cannot use following code because all exceptions are not exported:

if (error is ServiceDisabledException) {
  ...
}

So I have created this PR. Also In my opinion and in others the exceptions that can be thrown out to outside should be public.