copyWith method

  1. @override
ChatEventDescriptionChanged copyWith({
  1. String? oldDescription,
  2. String? newDescription,
})
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
ChatEventDescriptionChanged copyWith({
  String? oldDescription,
  String? newDescription,
}) =>
    ChatEventDescriptionChanged(
      oldDescription: oldDescription ?? this.oldDescription,
      newDescription: newDescription ?? this.newDescription,
    );