enableTap property

bool? enableTap
final

Whether a tap on the label toggles the tooltip.

The tap also reaches the row, as a tap elsewhere on it does: onNodeTap fires, and a Child can be selected from its label. Each tap toggles, so a double tap toggles twice, and a click on a tooltip open from a hover closes it.

A screen reader's tap goes to the row and does not open the tooltip. It reads message with the label, unless a builder supplies the content: then nothing is read.

On a label tap, onNodeTap runs before the toggle. A show() on this Node's controller made inside onNodeTap is therefore undone; deferred with scheduleMicrotask it opens a closed tooltip and keeps an open one open. A dialog or page that onNodeTap opens covers the tooltip: the tap does not open it, and it stays closed after the route is popped until a pointer over the label or another trigger shows it.

Implementation

final bool? enableTap;