# copyWithId method

StickerPack copyWithId(

1. HashFunction newHashFunction,
2. String newId

)

When using the fromXML factory to parse a description of a sticker pack with a yet unknown hash, then this function can be used in order to apply the freshly calculated hash to the object.

## Implementation

    StickerPack copyWithId(HashFunction newHashFunction, String newId) {
      return StickerPack(
        newId,
        name,
        summary,
        newHashFunction,
        newId,
        stickers,
        restricted,
      );
    }