onDismiss property
A callback that is called when the toast is dismissed. Displays an "X" button at the top right corner of the toast if provided.
Implementation
final VoidCallback? onDismiss;
A callback that is called when the toast is dismissed. Displays an "X" button at the top right corner of the toast if provided.
final VoidCallback? onDismiss;