setIconWithStyleAndCallback abstract method

void setIconWithStyleAndCallback(
  1. ImageProvider image,
  2. IconStyle style,
  3. Callback onFinished
)

Sets an icon with the given style for the placemark. Resets the animation, the composite icon, the view and the model. 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 setIconWithStyleAndCallback(
    image_provider.ImageProvider image,
    mapkit_map_icon_style.IconStyle style,
    mapkit_map_callback.Callback onFinished);