PointerExitEvent constructor Null safety

const PointerExitEvent(
  1. {Duration timeStamp = Duration.zero,
  2. PointerDeviceKind kind = PointerDeviceKind.touch,
  3. int pointer = 0,
  4. int device = 0,
  5. Offset position = Offset.zero,
  6. Offset delta = Offset.zero,
  7. int buttons = 0,
  8. bool obscured = false,
  9. double pressureMin = 1.0,
  10. double pressureMax = 1.0,
  11. double distance = 0.0,
  12. double distanceMax = 0.0,
  13. double size = 0.0,
  14. double radiusMajor = 0.0,
  15. double radiusMinor = 0.0,
  16. double radiusMin = 0.0,
  17. double radiusMax = 0.0,
  18. double orientation = 0.0,
  19. double tilt = 0.0,
  20. bool down = false,
  21. bool synthesized = false,
  22. int embedderId = 0}
)

Creates a pointer exit event.

All of the arguments must be non-null.

Implementation

const PointerExitEvent({
  super.timeStamp,
  super.kind,
  super.pointer,
  super.device,
  super.position,
  super.delta,
  super.buttons,
  super.obscured,
  super.pressureMin,
  super.pressureMax,
  super.distance,
  super.distanceMax,
  super.size,
  super.radiusMajor,
  super.radiusMinor,
  super.radiusMin,
  super.radiusMax,
  super.orientation,
  super.tilt,
  super.down,
  super.synthesized,
  super.embedderId,
}) : assert(!identical(kind, PointerDeviceKind.trackpad)),
     super(
       pressure: 0.0,
     );