PointerEvent constructor Null safety

const PointerEvent(
  1. {int embedderId,
  2. Duration timeStamp,
  3. int pointer,
  4. PointerDeviceKind kind,
  5. int device,
  6. Offset position,
  7. Offset delta,
  8. int buttons,
  9. bool down,
  10. bool obscured,
  11. double pressure,
  12. double pressureMin,
  13. double pressureMax,
  14. double distance,
  15. double distanceMax,
  16. double size,
  17. double radiusMajor,
  18. double radiusMinor,
  19. double radiusMin,
  20. double radiusMax,
  21. double orientation,
  22. double tilt,
  23. int platformData,
  24. bool synthesized,
  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,
});