setIconWithCallback abstract method

void setIconWithCallback(
  1. ImageProvider image,
  2. Callback onFinished
)

Sets an icon with the default style for the placemark. Switches off and resets model/composite icon/animation/view. The callback is called immediately after the image finished loading. This means you can, for example, change the placemark visibility with a new icon.

onFinished Called when the icon is loaded.

Implementation

void setIconWithCallback(image_provider.ImageProvider image,
    mapkit_map_callback.Callback onFinished);