copyWith method

SetSupergroupStickerSet copyWith({
  1. int? supergroupId,
  2. int? stickerSetId,
})

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

Implementation

SetSupergroupStickerSet copyWith({
  int? supergroupId,
  int? stickerSetId,
}) =>
    SetSupergroupStickerSet(
      supergroupId: supergroupId ?? this.supergroupId,
      stickerSetId: stickerSetId ?? this.stickerSetId,
    );