I'm using HERE Maps SDK for Flutter, version 4.6.4 Explore edition.
My Problem
I'm trying to add a tap listener to the map. I'm following the official documentation
void _setTapGestureHandler() {
_hereMapController.gestures.tapListener = TapListener((Point2D touchPoint) {
var geoCoordinates = _toString(_hereMapController.viewToGeoCoordinates(touchPoint));
print('Tap at: $geoCoordinates');
});
}
And this is what I am getting
Error: The class 'TapListener' is abstract and can't be instantiated. _hereMapController.gestures.tapListener = TapListener((Point2D touchPoint) { ^^^^^^^^^^^
It could be that there is a fix in the next versions, but I need a solution for this version of SDK.