setOnLocationSelectedListener method

void setOnLocationSelectedListener(
  1. OnLocationSelectedListener? listener, [
  2. bool? consumeEvent
])

Set a location selection listener, invoked when a location is selected, either by tapping on it, or programmatically with selectLocation

Implementation

void setOnLocationSelectedListener(OnLocationSelectedListener? listener,
    [bool? consumeEvent]) {
  MapcontrolPlatform.instance
      .setOnLocationSelectedListener(listener, consumeEvent);
}