PointerScrollEvent constructor Null safety

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

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,
  this.scrollDelta = Offset.zero,
  int embedderId = 0,
}) : assert(timeStamp != null),
     assert(kind != null),
     assert(device != null),
     assert(position != null),
     assert(scrollDelta != null),
     super(
       timeStamp: timeStamp,
       kind: kind,
       device: device,
       position: position,
       embedderId: embedderId,
     );