use null safe versions of dependencies
flutter_map is preparing a null safe version: https://github.com/fleaflet/flutter_map/pull/870 It can already be used: https://github.com/fleaflet/flutter_map/pull/870
I am already using the null safe version. Unfortunately map_controller is not null safe yet. And it depends on geopoint.
So this pull request aims to make geopoint null safe. To then enable map_controller to become null safe.
Warning: I am a flutter noob (JavaScript dev). And could not test this as my library that depends on it (map_controller) can not be altered to use a git dependency (or so flutter tells me). So feel free to change this pull request as much as you like. Or simply close it and solve it better.
Relates to https://github.com/synw/geopoint/issues/6 and encompasses https://github.com/synw/geopoint/pull/5.
More changes are needed to make the code itself null safe: https://dart.dev/null-safety/migration-guide#step2-migrate. Unfortunately I don't feel up to knowing enough about this library's code to do that.
For GeoJson : https://github.com/it-sam/geojson For GeoPoint : https://github.com/it-sam/geopoint Null safety enabled.