onPressed property

(void Function(BuildContext context)?) 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 void Function(BuildContext context)? onPressed;