AnimatedSnackbar constructor
const
AnimatedSnackbar({
- required String message,
- required VoidCallback onClose,
- ToastType type = ToastType.elastic,
- ToastPosition position = ToastPosition.top,
- IconData? icon,
- Color? color,
- Duration duration = const Duration(milliseconds: 3000),
- Offset? customOffset,
- Widget? child,
- Key? key,
Implementation
const AnimatedSnackbar({
required this.message,
required this.onClose,
this.type = ToastType.elastic,
this.position = ToastPosition.top,
this.icon,
this.color,
this.duration = const Duration(milliseconds: 3000),
this.customOffset,
this.child,
Key? key,
}) : super(key: key);