PointerEvent constructor Null safety

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

Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.

Implementation

const PointerEvent({
  this.embedderId = 0,
  this.timeStamp = Duration.zero,
  this.pointer = 0,
  this.kind = PointerDeviceKind.touch,
  this.device = 0,
  this.position = Offset.zero,
  this.delta = Offset.zero,
  this.buttons = 0,
  this.down = false,
  this.obscured = false,
  this.pressure = 1.0,
  this.pressureMin = 1.0,
  this.pressureMax = 1.0,
  this.distance = 0.0,
  this.distanceMax = 0.0,
  this.size = 0.0,
  this.radiusMajor = 0.0,
  this.radiusMinor = 0.0,
  this.radiusMin = 0.0,
  this.radiusMax = 0.0,
  this.orientation = 0.0,
  this.tilt = 0.0,
  this.platformData = 0,
  this.synthesized = false,
  this.transform,
  this.original,
});