AnimatedToastWidget constructor
const
AnimatedToastWidget({
- Key? key,
- required String message,
- required ToastType type,
- required Duration duration,
- required VoidCallback onRemove,
- String? title,
- bool showCloseIcon = true,
- ToastAnimation animation = ToastAnimation.none,
- TextStyle? messageStyle,
- TextStyle? titleStyle,
- EdgeInsetsGeometry? padding,
- double borderRadius = 8.0,
- double elevation = 0.0,
- Widget? icon,
- VoidCallback? onTap,
- Color? backgroundColor,
- double? progress,
- bool isProgress = false,
Implementation
const AnimatedToastWidget({
super.key,
required this.message,
required this.type,
required this.duration,
required this.onRemove,
this.title,
this.showCloseIcon = true,
this.animation = ToastAnimation.none,
this.messageStyle,
this.titleStyle,
this.padding,
this.borderRadius = 8.0,
this.elevation = 0.0,
this.icon,
this.onTap,
this.backgroundColor,
this.progress,
this.isProgress = false,
});