PointerScrollEvent constructor

const PointerScrollEvent(
  1. {Duration timeStamp: Duration.zero,
  2. PointerDeviceKind kind: PointerDeviceKind.mouse,
  3. int device: 0,
  4. Offset position: Offset.zero,
  5. Offset localPosition,
  6. Offset scrollDelta: Offset.zero,
  7. Matrix4 transform,
  8. PointerScrollEvent original}
)

Creates a pointer scroll event.

All of the arguments must be non-null.

Implementation

const PointerScrollEvent({
  Duration timeStamp = Duration.zero,
  PointerDeviceKind kind = PointerDeviceKind.mouse,
  int device = 0,
  Offset position = Offset.zero,
  Offset localPosition,
  this.scrollDelta = Offset.zero,
  Matrix4 transform,
  PointerScrollEvent original,
}) : assert(timeStamp != null),
     assert(kind != null),
     assert(device != null),
     assert(position != null),
     assert(scrollDelta != null),
     super(
       timeStamp: timeStamp,
       kind: kind,
       device: device,
       position: position,
       localPosition: localPosition,
       transform: transform,
       original: original,
     );