tapUp method

void tapUp(
  1. ZKEvent event
)

Implementation

void tapUp(ZKEvent event) {
  for (int i = this.children.length - 1; i >= 0; i--) {
    ZKNode child = this.children[i];
    ZKNode? result = child.hitTest(event.dx, event.dy);

    if (result != null) {
      event.target = result;
      if (result.onTapUp != null) result.onTapUp!(event);
      break;
    }
  }

  if (this.onTapUp != null) this.onTapUp!(event);
}