onClose property

VoidCallback? onClose
final

Callback executed when the close button is pressed. If null, defaults to Navigator.of(context).maybePop().

Implementation

final VoidCallback? onClose;