onClose property

VoidCallback? onClose
final

Called when the close button is pressed.

If null, this InfoBar will not be closable

Implementation

final VoidCallback? onClose;