copyWith method Null safety

  1. @override
PointerMoveEvent copyWith(
  1. {Duration? timeStamp,
  2. int? pointer,
  3. PointerDeviceKind? kind,
  4. int? device,
  5. Offset? position,
  6. Offset? delta,
  7. int? buttons,
  8. bool? obscured,
  9. double? pressure,
  10. double? pressureMin,
  11. double? pressureMax,
  12. double? distance,
  13. double? distanceMax,
  14. double? size,
  15. double? radiusMajor,
  16. double? radiusMinor,
  17. double? radiusMin,
  18. double? radiusMax,
  19. double? orientation,
  20. double? tilt,
  21. bool? synthesized,
  22. int? embedderId}

Creates a copy of event with the specified properties replaced.

Calling this method on a transformed event will return a new transformed event based on the current transform and the provided properties.


PointerMoveEvent copyWith({
  Duration? timeStamp,
  int? pointer,
  PointerDeviceKind? kind,
  int? device,
  Offset? position,
  Offset? delta,
  int? buttons,
  bool? obscured,
  double? pressure,
  double? pressureMin,
  double? pressureMax,
  double? distance,
  double? distanceMax,
  double? size,
  double? radiusMajor,
  double? radiusMinor,
  double? radiusMin,
  double? radiusMax,
  double? orientation,
  double? tilt,
  bool? synthesized,
  int? embedderId,
}) {
  return PointerMoveEvent(
    timeStamp: timeStamp ?? this.timeStamp,
    pointer: pointer ?? this.pointer,
    kind: kind ?? this.kind,
    device: device ?? this.device,
    position: position ?? this.position,
    delta: delta ??,
    buttons: buttons ?? this.buttons,
    obscured: obscured ?? this.obscured,
    pressure: pressure ?? this.pressure,
    pressureMin: pressureMin ?? this.pressureMin,
    pressureMax: pressureMax ?? this.pressureMax,
    distanceMax: distanceMax ?? this.distanceMax,
    size: size ?? this.size,
    radiusMajor: radiusMajor ?? this.radiusMajor,
    radiusMinor: radiusMinor ?? this.radiusMinor,
    radiusMin: radiusMin ?? this.radiusMin,
    radiusMax: radiusMax ?? this.radiusMax,
    orientation: orientation ?? this.orientation,
    tilt: tilt ?? this.tilt,
    synthesized: synthesized ?? this.synthesized,
    embedderId: embedderId ?? this.embedderId,