PointerDownEvent constructor Null safety

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. int buttons = kPrimaryButton,
  7. bool obscured = false,
  8. double pressure = 1.0,
  9. double pressureMin = 1.0,
  10. double pressureMax = 1.0,
  11. double distanceMax = 0.0,
  12. double size = 0.0,
  13. double radiusMajor = 0.0,
  14. double radiusMinor = 0.0,
  15. double radiusMin = 0.0,
  16. double radiusMax = 0.0,
  17. double orientation = 0.0,
  18. double tilt = 0.0,
  19. int embedderId = 0}
)

Creates a pointer down event.

All of the arguments must be non-null.

Implementation

const PointerDownEvent({
  super.timeStamp,
  super.pointer,
  super.kind,
  super.device,
  super.position,
  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.embedderId,
}) : assert(!identical(kind, PointerDeviceKind.trackpad)),
     super(
       down: true,
       distance: 0.0,
     );