PointerMoveEvent constructor

const PointerMoveEvent({
  1. int viewId = 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 = kPrimaryButton,
  9. bool obscured = false,
  10. double pressure = 1.0,
  11. double pressureMin = 1.0,
  12. double pressureMax = 1.0,
  13. double distanceMax = 0.0,
  14. double size = 0.0,
  15. double radiusMajor = 0.0,
  16. double radiusMinor = 0.0,
  17. double radiusMin = 0.0,
  18. double radiusMax = 0.0,
  19. double orientation = 0.0,
  20. double tilt = 0.0,
  21. int platformData = 0,
  22. bool synthesized = false,
  23. int embedderId = 0,
})

Creates a pointer move event.

Implementation

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