copyWith method

  1. @override
UpdateMessageContentOpened copyWith({
  1. int? chatId,
  2. int? messageId,
  3. dynamic extra,
  4. int? clientId,
})
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
UpdateMessageContentOpened copyWith({
  int? chatId,
  int? messageId,
  dynamic extra,
  int? clientId,
}) =>
    UpdateMessageContentOpened(
      chatId: chatId ?? this.chatId,
      messageId: messageId ?? this.messageId,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );