PointerAddedEvent constructor

const PointerAddedEvent({
  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. bool obscured = false,
  8. double pressureMin = 1.0,
  9. double pressureMax = 1.0,
  10. double distance = 0.0,
  11. double distanceMax = 0.0,
  12. double radiusMin = 0.0,
  13. double radiusMax = 0.0,
  14. double orientation = 0.0,
  15. double tilt = 0.0,
  16. int embedderId = 0,
})

Creates a pointer added event.

Implementation

const PointerAddedEvent({
  super.viewId,
  super.timeStamp,
  super.pointer,
  super.kind,
  super.device,
  super.position,
  super.obscured,
  super.pressureMin,
  super.pressureMax,
  super.distance,
  super.distanceMax,
  super.radiusMin,
  super.radiusMax,
  super.orientation,
  super.tilt,
  super.embedderId,
}) : super(
       pressure: 0.0,
     );