TouchInit constructor

TouchInit({
  1. required int identifier,
  2. required EventTarget target,
  3. double? clientX,
  4. double? clientY,
  5. double? screenX,
  6. double? screenY,
  7. double? pageX,
  8. double? pageY,
  9. double? radiusX,
  10. double? radiusY,
  11. double? rotationAngle,
  12. double? force,
  13. double? altitudeAngle,
  14. double? azimuthAngle,
  15. TouchType? touchType,
})

Implementation

factory TouchInit(
        {required int identifier,
        required EventTarget target,
        double? clientX,
        double? clientY,
        double? screenX,
        double? screenY,
        double? pageX,
        double? pageY,
        double? radiusX,
        double? radiusY,
        double? rotationAngle,
        double? force,
        double? altitudeAngle,
        double? azimuthAngle,
        TouchType? touchType}) =>
    TouchInit._(
        identifier: identifier,
        target: target,
        clientX: clientX ?? 0,
        clientY: clientY ?? 0,
        screenX: screenX ?? 0,
        screenY: screenY ?? 0,
        pageX: pageX ?? 0,
        pageY: pageY ?? 0,
        radiusX: radiusX ?? 0,
        radiusY: radiusY ?? 0,
        rotationAngle: rotationAngle ?? 0,
        force: force ?? 0,
        altitudeAngle: altitudeAngle ?? 0,
        azimuthAngle: azimuthAngle ?? 0,
        touchType: touchType?.value ?? TouchType.direct.value);