onPressed property

VoidCallback? onPressed
final

The callback that is called when the action item is tapped. onPressed is optional by default will dismiss the Action Sheet.

Implementation

final VoidCallback? onPressed;