add method

void add(
  1. HitTestEntry<HitTestTarget> entry
)

Add a HitTestEntry to the path.

The new entry is added at the end of the path, which means entries should be added in order from most specific to least specific, typically during an upward walk of the tree being hit tested.

Implementation

void add(HitTestEntry entry) {
  assert(entry._transform == null);
  entry._transform = _lastTransform;
  _path.add(entry);
}