copyWith method

  1. @override
ChatEventUsernameChanged copyWith({
  1. String? oldUsername,
  2. String? newUsername,
})
override

Implementation

@override
ChatEventUsernameChanged copyWith({
  String? oldUsername,
  String? newUsername,
}) =>
    ChatEventUsernameChanged(
      oldUsername: oldUsername ?? this.oldUsername,
      newUsername: newUsername ?? this.newUsername,
    );