onExternalLinkClicked method

void onExternalLinkClicked(
  1. OnExternalLinkClickedCallback callback
)

Callback invoked when the user clicks on a link in the MapView that leads to a website different from the MapView's domain. If this callback is not set, the link will be opened in the system's default browser by default.

Implementation

void onExternalLinkClicked(OnExternalLinkClickedCallback callback) {
  _onExternalLinkClickedCallback = callback;
}