copyWith method

  1. @override
ChatEventLocationChanged copyWith({
  1. ChatLocation? oldLocation()?,
  2. 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,
    );