PointerCancelEvent constructor Null safety

const PointerCancelEvent(
  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 = 0,
  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 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 cancel event.

All of the arguments must be non-null.

Implementation

const PointerCancelEvent({
  Duration timeStamp = Duration.zero,
  int pointer = 0,
  PointerDeviceKind kind = PointerDeviceKind.touch,
  int device = 0,
  Offset position = Offset.zero,
  int buttons = 0,
  bool obscured = false,
  double pressureMin = 1.0,
  double pressureMax = 1.0,
  double distance = 0.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,
  int embedderId = 0,
}) : super(
       timeStamp: timeStamp,
       pointer: pointer,
       kind: kind,
       device: device,
       position: position,
       buttons: buttons,
       down: false,
       obscured: obscured,
       pressure: 0.0,
       pressureMin: pressureMin,
       pressureMax: pressureMax,
       distance: distance,
       distanceMax: distanceMax,
       size: size,
       radiusMajor: radiusMajor,
       radiusMinor: radiusMinor,
       radiusMin: radiusMin,
       radiusMax: radiusMax,
       orientation: orientation,
       tilt: tilt,
       embedderId: embedderId,
     );