copyWith method

  1. @override
ChatPhotoStickerTypeRegularOrMask copyWith({
  1. int? stickerSetId,
  2. int? stickerId,
})
override

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

Implementation

@override
ChatPhotoStickerTypeRegularOrMask copyWith({
  int? stickerSetId,
  int? stickerId,
}) =>
    ChatPhotoStickerTypeRegularOrMask(
      stickerSetId: stickerSetId ?? this.stickerSetId,
      stickerId: stickerId ?? this.stickerId,
    );