ToastEntry constructor
ToastEntry({
- required String message,
- required ToastType type,
- required ToastPosition position,
- required Duration duration,
- 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,
- Color? backgroundColor,
- VoidCallback? onTap,
- double? progress,
- bool showIndicator = false,
Implementation
ToastEntry({
required this.message,
required this.type,
required this.position,
required this.duration,
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.backgroundColor,
this.onTap,
this.progress,
this.showIndicator = false,
});