copyWith method
- int? viewId,
- 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,
- double? scale,
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
PointerScaleEvent copyWith({
int? viewId,
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,
double? scale,
}) {
return PointerScaleEvent(
viewId: viewId ?? this.viewId,
timeStamp: timeStamp ?? this.timeStamp,
kind: kind ?? this.kind,
device: device ?? this.device,
position: position ?? this.position,
embedderId: embedderId ?? this.embedderId,
scale: scale ?? this.scale,
).transformed(transform);
}