setIconWithCallback abstract method

void setIconWithCallback(
  1. AnimatedImageProvider image,
  2. IconStyle style,
  3. Callback onFinished
)

Sets the animated image and icon style. The new animation will be in the paused state.

onFinished is called when the icon is loaded.

Implementation

void setIconWithCallback(
    animated_image_provider.AnimatedImageProvider image,
    mapkit_map_icon_style.IconStyle style,
    mapkit_map_callback.Callback onFinished);