PointerDownEvent constructor

const PointerDownEvent(
  1. {Duration timeStamp: Duration.zero,
  2. int pointer: 0,
  3. PointerDeviceKind kind: PointerDeviceKind.touch,
  4. int device: 0,
  5. Offset position: Offset.zero,
  6. Offset localPosition,
  7. int buttons: kPrimaryButton,
  8. bool obscured: false,
  9. double pressure: 1.0,
  10. double pressureMin: 1.0,
  11. double pressureMax: 1.0,
  12. double distanceMax: 0.0,
  13. double size: 0.0,
  14. double radiusMajor: 0.0,
  15. double radiusMinor: 0.0,
  16. double radiusMin: 0.0,
  17. double radiusMax: 0.0,
  18. double orientation: 0.0,
  19. double tilt: 0.0,
  20. Matrix4 transform,
  21. PointerDownEvent original}
)

Creates a pointer down event.

All of the arguments must be non-null.

Implementation

const PointerDownEvent({
  Duration timeStamp = Duration.zero,
  int pointer = 0,
  PointerDeviceKind kind = PointerDeviceKind.touch,
  int device = 0,
  Offset position = Offset.zero,
  Offset localPosition,
  int buttons = kPrimaryButton,
  bool obscured = false,
  double pressure = 1.0,
  double pressureMin = 1.0,
  double pressureMax = 1.0,
  double distanceMax = 0.0,
  double size = 0.0,
  double radiusMajor = 0.0,
  double radiusMinor = 0.0,
  double radiusMin = 0.0,
  double radiusMax = 0.0,
  double orientation = 0.0,
  double tilt = 0.0,
  Matrix4 transform,
  PointerDownEvent original,
}) : super(
       timeStamp: timeStamp,
       pointer: pointer,
       kind: kind,
       device: device,
       position: position,
       localPosition: localPosition,
       buttons: buttons,
       down: true,
       obscured: obscured,
       pressure: pressure,
       pressureMin: pressureMin,
       pressureMax: pressureMax,
       distance: 0.0,
       distanceMax: distanceMax,
       size: size,
       radiusMajor: radiusMajor,
       radiusMinor: radiusMinor,
       radiusMin: radiusMin,
       radiusMax: radiusMax,
       orientation: orientation,
       tilt: tilt,
       transform: transform,
       original: original,
     );