onDismiss property

VoidCallback? onDismiss
final

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;