onLongTapDown method
Called after the user has been touching the screen for longTapDelay seconds without the tap being cancelled.
This event will be delivered to all the components that previously
received the onTapDown
event, and who remain at the point where the user
is touching the screen.
Implementation
@mustCallSuper
void onLongTapDown(TapDownEvent event) {
event.deliverAtPoint(
rootComponent: game,
eventHandler: (TapCallbacks component) {
final record = TaggedComponent(event.pointerId, component);
if (_record.contains(record)) {
component.onLongTapDown(event);
}
},
deliverToAll: true,
);
}