onCancelled property

void Function()? onCancelled
getter/setter pair

Callback for what should happen when the tap is cancelled, for example when the pointer is dragged outside of the button before it is released.

Implementation

void Function()? onCancelled;