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
ChatBoostLinkInfo copyWith({
bool? isPublic,
int? chatId,
dynamic extra,
int? clientId,
}) =>
ChatBoostLinkInfo(
isPublic: isPublic ?? this.isPublic,
chatId: chatId ?? this.chatId,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);