PointerPanZoomStartEvent constructor Null safety

const PointerPanZoomStartEvent(
  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 start event.

All of the arguments must be non-null.

Implementation

const PointerPanZoomStartEvent({
  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);