AppToast constructor
const
AppToast({
- Key? key,
- required String message,
- IconData? icon,
- AppToastType type = AppToastType.info,
- Duration duration = const Duration(seconds: 3),
- AppToastPosition position = AppToastPosition.bottom,
- VoidCallback? action,
- String? actionLabel,
Implementation
const AppToast({
super.key,
required this.message,
this.icon,
this.type = AppToastType.info,
this.duration = const Duration(seconds: 3),
this.position = AppToastPosition.bottom,
this.action,
this.actionLabel,
});