fadeDuration property - MapMarker class - mapview library - Dart API
fadeDuration property
Duration of a fade-in effect on marker addition to a scene or a fade-out effect on marker removal from a scene. Gets the current duration of a fade-in effect on marker addition to a scene or a fade-out effect on marker removal from a scene.
Implementation
Duration get fadeDuration;
Duration of a fade-in effect on marker addition to a scene or a fade-out effect on marker removal from a scene. Sets duration of a fade-in effect on marker addition to a scene or a fade-out effect on marker removal from a scene.
Provided value is clamped in range [0.0, 10.0] seconds. Default value is 0 seconds which means the effect is disabled and marker is added/removed immediately without any animation. Fade-in effect is also applied when marker leaves and then re-enters screen area.
Change to this property is made asynchronously and is not guaranteed to take effect on the next rendered frame. In particular, changing fade duration and removing the marker immediately after may result in the new value being ignored for this removal.
Implementation
set fadeDuration(Duration value);