copyWith method Null safety

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

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.

Implementation

@override
PointerUpEvent copyWith({
  Duration? timeStamp,
  int? pointer,
  PointerDeviceKind? kind,
  int? device,
  Offset? position,
  Offset? localPosition,
  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 PointerUpEvent(
    timeStamp: timeStamp ?? this.timeStamp,
    pointer: pointer ?? this.pointer,
    kind: kind ?? this.kind,
    device: device ?? this.device,
    position: position ?? this.position,
    buttons: buttons ?? this.buttons,
    obscured: obscured ?? this.obscured,
    pressure: pressure ?? this.pressure,
    pressureMin: pressureMin ?? this.pressureMin,
    pressureMax: pressureMax ?? this.pressureMax,
    distance: distance ?? this.distance,
    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,
    embedderId: embedderId ?? this.embedderId,
  ).transformed(transform);
}