copyWith method Null safety
- {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}
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
PointerExitEvent 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 PointerExitEvent(
timeStamp: timeStamp ?? this.timeStamp,
kind: kind ?? this.kind,
device: device ?? this.device,
position: position ?? this.position,
delta: delta ?? this.delta,
buttons: buttons ?? this.buttons,
obscured: obscured ?? this.obscured,
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,
synthesized: synthesized ?? this.synthesized,
embedderId: embedderId ?? this.embedderId,
).transformed(transform);
}