PointerEvent constructor

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