PointerScrollEvent constructor

const PointerScrollEvent({
  1. int viewId = 0,
  2. Duration timeStamp = Duration.zero,
  3. PointerDeviceKind kind = PointerDeviceKind.mouse,
  4. int device = 0,
  5. Offset position = Offset.zero,
  6. Offset scrollDelta = Offset.zero,
  7. int embedderId = 0,
  8. RespondPointerEventCallback? onRespond,
})

Creates a pointer scroll event.

Implementation

const PointerScrollEvent({
  super.viewId,
  super.timeStamp,
  super.kind,
  super.device,
  super.position,
  this.scrollDelta = Offset.zero,
  super.embedderId,
  RespondPointerEventCallback? onRespond,
}) : _onRespond = onRespond;