PointerPanZoomUpdateEvent constructor Null safety

const PointerPanZoomUpdateEvent(
  1. {Duration timeStamp = Duration.zero,
  2. int device = 0,
  3. int pointer = 0,
  4. Offset position = Offset.zero,
  5. int embedderId = 0,
  6. Offset pan = Offset.zero,
  7. Offset panDelta = Offset.zero,
  8. double scale = 1.0,
  9. double rotation = 0.0,
  10. bool synthesized = false}
)

Creates a pointer pan/zoom update event.

All of the arguments must be non-null.

Implementation

const PointerPanZoomUpdateEvent({
  super.timeStamp,
  super.device,
  super.pointer,
  super.position,
  super.embedderId,
  this.pan = Offset.zero,
  this.panDelta = Offset.zero,
  this.scale = 1.0,
  this.rotation = 0.0,
  super.synthesized,
}) : assert(timeStamp != null),
     assert(device != null),
     assert(pointer != null),
     assert(position != null),
     assert(embedderId != null),
     assert(pan != null),
     assert(panDelta != null),
     assert(scale != null),
     assert(rotation != null),
     assert(synthesized != null),
     super(kind: PointerDeviceKind.trackpad);