ToastrWidget constructor
const
ToastrWidget({
- required ToastrConfig config,
- Key? key,
- VoidCallback? onDismiss,
Creates a toastr widget with the given configuration
The config parameter is required and defines the appearance and behavior.
The onDismiss callback is called when the toast is dismissed.
Implementation
const ToastrWidget({required this.config, super.key, this.onDismiss});