copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
MessageLinkInfo copyWith({
bool? isPublic,
int? chatId,
int? messageThreadId,
Message? Function()? message,
int? mediaTimestamp,
bool? forAlbum,
dynamic extra,
int? clientId,
}) =>
MessageLinkInfo(
isPublic: isPublic ?? this.isPublic,
chatId: chatId ?? this.chatId,
messageThreadId: messageThreadId ?? this.messageThreadId,
message: message != null ? message() : this.message,
mediaTimestamp: mediaTimestamp ?? this.mediaTimestamp,
forAlbum: forAlbum ?? this.forAlbum,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);