onTap property

VoidCallback onTap
final

Called on each tap; the owner flips the state, and this draws on as it is handed back.

Implementation

final VoidCallback onTap;