copyWith method

  1. @override
PointerPanZoomUpdateEvent copyWith({
  1. int? viewId,
  2. Duration? timeStamp,
  3. int? pointer,
  4. PointerDeviceKind? kind,
  5. int? device,
  6. Offset? position,
  7. Offset? delta,
  8. int? buttons,
  9. bool? obscured,
  10. double? pressure,
  11. double? pressureMin,
  12. double? pressureMax,
  13. double? distance,
  14. double? distanceMax,
  15. double? size,
  16. double? radiusMajor,
  17. double? radiusMinor,
  18. double? radiusMin,
  19. double? radiusMax,
  20. double? orientation,
  21. double? tilt,
  22. bool? synthesized,
  23. int? embedderId,
  24. Offset? pan,
  25. Offset? localPan,
  26. Offset? panDelta,
  27. Offset? localPanDelta,
  28. double? scale,
  29. double? rotation,
})
inherited

Creates a copy of event with the specified properties replaced.

Calling this method on a transformed event will return a new transformed event based on the current transform and the provided properties.

Implementation

@override
PointerPanZoomUpdateEvent copyWith({
  int? viewId,
  Duration? timeStamp,
  int? pointer,
  PointerDeviceKind? kind,
  int? device,
  Offset? position,
  Offset? delta,
  int? buttons,
  bool? obscured,
  double? pressure,
  double? pressureMin,
  double? pressureMax,
  double? distance,
  double? distanceMax,
  double? size,
  double? radiusMajor,
  double? radiusMinor,
  double? radiusMin,
  double? radiusMax,
  double? orientation,
  double? tilt,
  bool? synthesized,
  int? embedderId,
  Offset? pan,
  Offset? localPan,
  Offset? panDelta,
  Offset? localPanDelta,
  double? scale,
  double? rotation,
}) {
  assert(kind == null || identical(kind, PointerDeviceKind.trackpad));
  return PointerPanZoomUpdateEvent(
    viewId: viewId ?? this.viewId,
    timeStamp: timeStamp ?? this.timeStamp,
    device: device ?? this.device,
    position: position ?? this.position,
    embedderId: embedderId ?? this.embedderId,
    pan: pan ?? this.pan,
    panDelta: panDelta ?? this.panDelta,
    scale: scale ?? this.scale,
    rotation: rotation ?? this.rotation,
  ).transformed(transform);
}