copyWith method
ChatEventLocationChanged
copyWith({
- ChatLocation? oldLocation()?,
- ChatLocation? newLocation()?,
override
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
@override
ChatEventLocationChanged copyWith({
ChatLocation? Function()? oldLocation,
ChatLocation? Function()? newLocation,
}) =>
ChatEventLocationChanged(
oldLocation: oldLocation != null ? oldLocation() : this.oldLocation,
newLocation: newLocation != null ? newLocation() : this.newLocation,
);