copyWith method

GetAllStickerEmojis copyWith({
  1. StickerType? stickerType,
  2. String? query,
  3. int? chatId,
  4. bool? returnOnlyMainEmoji,
})

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

Implementation

GetAllStickerEmojis copyWith({
  StickerType? stickerType,
  String? query,
  int? chatId,
  bool? returnOnlyMainEmoji,
}) =>
    GetAllStickerEmojis(
      stickerType: stickerType ?? this.stickerType,
      query: query ?? this.query,
      chatId: chatId ?? this.chatId,
      returnOnlyMainEmoji: returnOnlyMainEmoji ?? this.returnOnlyMainEmoji,
    );