PointerPanZoomEndEvent constructor Null safety

const PointerPanZoomEndEvent(
  1. {Duration timeStamp = Duration.zero,
  2. int device = 0,
  3. int pointer = 0,
  4. Offset position = Offset.zero,
  5. int embedderId = 0,
  6. bool synthesized = false}
)

Creates a pointer pan/zoom end event.

All of the arguments must be non-null.

Implementation

const PointerPanZoomEndEvent({
  super.timeStamp,
  super.device,
  super.pointer,
  super.position,
  super.embedderId,
  super.synthesized,
}) : assert(timeStamp != null),
     assert(device != null),
     assert(pointer != null),
     assert(position != null),
     assert(embedderId != null),
     assert(synthesized != null),
     super(kind: PointerDeviceKind.trackpad);