add method

void add (HitTestEntry 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.


void add(HitTestEntry entry) {
  assert(entry._transform == null);
  entry._transform = _transforms.isEmpty ? null : _transforms.last;