PointerAddedEvent constructor Null safety

const PointerAddedEvent(
  1. {Duration timeStamp = Duration.zero,
  2. int pointer = 0,
  3. PointerDeviceKind kind = PointerDeviceKind.touch,
  4. int device = 0,
  5. Offset position = Offset.zero,
  6. bool obscured = false,
  7. double pressureMin = 1.0,
  8. double pressureMax = 1.0,
  9. double distance = 0.0,
  10. double distanceMax = 0.0,
  11. double radiusMin = 0.0,
  12. double radiusMax = 0.0,
  13. double orientation = 0.0,
  14. double tilt = 0.0,
  15. int embedderId = 0}
)

Creates a pointer added event.

All of the arguments must be non-null.

Implementation

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