onPressed property

void Function(BuildContext context) onPressed
final

The callback that is called when the action item is tapped. (required)

Implementation

final void Function(BuildContext context) onPressed;