copyWith method

SetStickerPositionInSet copyWith({
  1. InputFile? sticker,
  2. int? position,
})

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

Implementation

SetStickerPositionInSet copyWith({
  InputFile? sticker,
  int? position,
}) =>
    SetStickerPositionInSet(
      sticker: sticker ?? this.sticker,
      position: position ?? this.position,
    );