onPressed property

VoidCallback? onPressed
final

Called when the user taps this list tile.

If null, and onSelectionChange is also null, the tile does not perform any action

Implementation

final VoidCallback? onPressed;