ToastrWidget constructor

const ToastrWidget({
  1. required ToastrConfig config,
  2. Key? key,
  3. 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});