copyWith method

GetChatBoosts copyWith({
  1. int? chatId,
  2. bool? onlyGiftCodes,
  3. String? offset,
  4. int? limit,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

GetChatBoosts copyWith({
  int? chatId,
  bool? onlyGiftCodes,
  String? offset,
  int? limit,
}) =>
    GetChatBoosts(
      chatId: chatId ?? this.chatId,
      onlyGiftCodes: onlyGiftCodes ?? this.onlyGiftCodes,
      offset: offset ?? this.offset,
      limit: limit ?? this.limit,
    );