bindEventListeners method

  1. @override
void bindEventListeners()
override

Implementation

@override
void bindEventListeners() {
  releasedListener = addEventListener(EventType.mouseReleasedEvent, (event) {
    if (mobject.isInside(event.mousePos)) {
      onClick();
      return true;
    }

    return false;
  });
}