disappearanceFadeAnimationDuration property

Duration disappearanceFadeAnimationDuration
final

Duration of the badge appearance and disappearance fade animations. Fade animation is created with AnimatedOpacity.

Some of the BadgeAnimationType cannot be used for appearance and disappearance animation. E.g. BadgeAnimationType.scale can be used, but BadgeAnimationType.rotation cannot be used. That is why we need fade animation and duration for it when it comes to appearance and disappearance of these "non-disappearing" animations.

There is a thing: you need this duration to NOT be longer than animationDuration if you want to use the basic animation as appearance and disappearance animation.

Set this to zero to skip the badge appearance and disappearance animations The default value is Duration(milliseconds: 200).

Implementation

final Duration disappearanceFadeAnimationDuration;