pointerAction static method Null safety

int pointerAction(
  1. int pointerId,
  2. int action
)

Creates a masked Android MotionEvent action value for an indexed pointer.

Implementation

static int pointerAction(int pointerId, int action) {
  return ((pointerId << 8) & 0xff00) | (action & 0xff);
}