removeAlert method
Implementation
void removeAlert(OverAlertModel model) {
if (!_alertModelList.contains(model)) return;
_animatedListKey.currentState!.removeItem(_alertModelList.indexOf(model), (_, animation) {
return SlideTransition(
position: Tween<Offset>(
begin: const Offset(1, 0),
end: const Offset(0, 0),
).animate(animation),
child: OverAlertWidget(model),
);
}, duration: OverExtension.kAlertAnimationDuration);
_alertModelList.remove(model);
}