handlerPointerDown method

  1. @override
bool handlerPointerDown(
  1. PointerDownEvent event
)
override

Implementation

@override
bool handlerPointerDown(PointerDownEvent event) {
  for (var child in children) {
    if (child is GameComponent) {
      if (child.handlerPointerDown(event)) {
        return true;
      }
    }
  }
  return super.handlerPointerDown(event);
}