PointerEventInit constructor

PointerEventInit({
  1. int? pointerId,
  2. double? width,
  3. double? height,
  4. double? pressure,
  5. double? tangentialPressure,
  6. int? tiltX,
  7. int? tiltY,
  8. int? twist,
  9. double? altitudeAngle,
  10. double? azimuthAngle,
  11. String? pointerType,
  12. bool? isPrimary,
  13. Iterable<PointerEvent>? coalescedEvents,
  14. Iterable<PointerEvent>? predictedEvents,
})

Implementation

factory PointerEventInit(
        {int? pointerId,
        double? width,
        double? height,
        double? pressure,
        double? tangentialPressure,
        int? tiltX,
        int? tiltY,
        int? twist,
        double? altitudeAngle,
        double? azimuthAngle,
        String? pointerType,
        bool? isPrimary,
        Iterable<PointerEvent>? coalescedEvents,
        Iterable<PointerEvent>? predictedEvents}) =>
    PointerEventInit._(
        pointerId: pointerId ?? 0,
        width: width ?? 1,
        height: height ?? 1,
        pressure: pressure ?? 0,
        tangentialPressure: tangentialPressure ?? 0,
        tiltX: tiltX ?? undefined,
        tiltY: tiltY ?? undefined,
        twist: twist ?? 0,
        altitudeAngle: altitudeAngle ?? undefined,
        azimuthAngle: azimuthAngle ?? undefined,
        pointerType: pointerType ?? '',
        isPrimary: isPrimary ?? false,
        coalescedEvents: coalescedEvents ?? const [],
        predictedEvents: predictedEvents ?? const []);