onPressed property

void Function()? onPressed
final

The onPressed function which will be called when the user clicks on the icon.

Implementation

final void Function()? onPressed;