onTouch method

  1. @override
void onTouch(
  1. Point<int> pos
)

Called when a single-pointer touch down event occurs.

A touch event is fired when a pointer goes down and up within the SDK gesture thresholds for time and travel distance.

Parameters

  • pos: Touch position in view pixels.

Implementation

@override
void onTouch(final Point<int> pos) {
  _touchCallback?.call(pos);
}