showAnimation property
InAppNotificationAnimation
showAnimation
InAppNotificationAnimation used to show In-App Notification based on set animationStyle to InAppNotifications instance
Implementation
static InAppNotificationAnimation get showAnimation {
InAppNotificationAnimation animation;
switch (InAppNotifications.instance.animationStyle) {
case InAppNotificationsAnimationStyle.custom:
animation = InAppNotifications.instance.customAnimation!;
break;
case InAppNotificationsAnimationStyle.scale:
animation = ScaleAnimation();
break;
case InAppNotificationsAnimationStyle.opacity:
animation = OpacityAnimation();
break;
default:
animation = OffsetAnimation();
break;
}
return animation;
}