tap method

void tap(
  1. Offset p
)

A tap at p: it pins what is there; on what is pinned, or on nothing, it lets go.

Implementation

void tap(Offset p) {
  if (!spec.selection.tap) return;
  final hit = hitAt(p);
  final next = hit == _pinned ? null : hit;
  if (next == _pinned) return;
  _pinned = next;
  notifyListeners();
}