toNative method

Pointer<NativeTouch> toNative()

Implementation

Pointer<NativeTouch> toNative() {
  Pointer<NativeTouch> nativeTouch = malloc.allocate<NativeTouch>(sizeOf<NativeTouch>());
  nativeTouch.ref.identifier = identifier;
  nativeTouch.ref.target = target.pointer!;
  nativeTouch.ref.clientX = clientX;
  nativeTouch.ref.clientY = clientY;
  nativeTouch.ref.screenX = screenX;
  nativeTouch.ref.screenY = screenY;
  nativeTouch.ref.pageX = pageX;
  nativeTouch.ref.pageY = pageY;
  nativeTouch.ref.radiusX = radiusX;
  nativeTouch.ref.radiusY = radiusY;
  nativeTouch.ref.rotationAngle = rotationAngle;
  nativeTouch.ref.force = force;
  nativeTouch.ref.altitudeAngle = altitudeAngle;
  nativeTouch.ref.azimuthAngle = azimuthAngle;
  nativeTouch.ref.touchType = touchType.index;
  return nativeTouch;
}