copyWith method

ChatBoostLinkInfo copyWith({
  1. bool? isPublic,
  2. int? chatId,
  3. dynamic extra,
  4. int? clientId,
})

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,
    );