PointerScrollInertiaCancelEvent constructor Null safety

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

Creates a pointer scroll-inertia cancel event.

All of the arguments must be non-null.

Implementation

const PointerScrollInertiaCancelEvent({
  super.timeStamp,
  super.kind,
  super.device,
  super.position,
  super.embedderId,
}) : assert(timeStamp != null),
     assert(kind != null),
     assert(device != null),
     assert(position != null);