PointerData constructor Null safety

const PointerData(
  1. {int embedderId = 0,
  2. Duration timeStamp = Duration.zero,
  3. PointerChange change = PointerChange.cancel,
  4. PointerDeviceKind kind = PointerDeviceKind.touch,
  5. PointerSignalKind? signalKind,
  6. int device = 0,
  7. int pointerIdentifier = 0,
  8. double physicalX = 0.0,
  9. double physicalY = 0.0,
  10. double physicalDeltaX = 0.0,
  11. double physicalDeltaY = 0.0,
  12. int buttons = 0,
  13. bool obscured = false,
  14. bool synthesized = false,
  15. double pressure = 0.0,
  16. double pressureMin = 0.0,
  17. double pressureMax = 0.0,
  18. double distance = 0.0,
  19. double distanceMax = 0.0,
  20. double size = 0.0,
  21. double radiusMajor = 0.0,
  22. double radiusMinor = 0.0,
  23. double radiusMin = 0.0,
  24. double radiusMax = 0.0,
  25. double orientation = 0.0,
  26. double tilt = 0.0,
  27. int platformData = 0,
  28. double scrollDeltaX = 0.0,
  29. double scrollDeltaY = 0.0,
  30. double panX = 0.0,
  31. double panY = 0.0,
  32. double panDeltaX = 0.0,
  33. double panDeltaY = 0.0,
  34. double scale = 0.0,
  35. double rotation = 0.0}
)

Creates an object that represents the state of a pointer.

Implementation

const PointerData({
  this.embedderId = 0,
  this.timeStamp = Duration.zero,
  this.change = PointerChange.cancel,
  this.kind = PointerDeviceKind.touch,
  this.signalKind,
  this.device = 0,
  this.pointerIdentifier = 0,
  this.physicalX = 0.0,
  this.physicalY = 0.0,
  this.physicalDeltaX = 0.0,
  this.physicalDeltaY = 0.0,
  this.buttons = 0,
  this.obscured = false,
  this.synthesized = false,
  this.pressure = 0.0,
  this.pressureMin = 0.0,
  this.pressureMax = 0.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.scrollDeltaX = 0.0,
  this.scrollDeltaY = 0.0,
  this.panX = 0.0,
  this.panY = 0.0,
  this.panDeltaX = 0.0,
  this.panDeltaY = 0.0,
  this.scale = 0.0,
  this.rotation = 0.0,
});