copyWith method

StickerAsset copyWith({
  1. Sticker? sticker,
  2. double? angle,
  3. StickerConstraint? constraint,
  4. StickerPosition? position,
  5. StickerSize? size,
})

Implementation

StickerAsset copyWith({
  Sticker? sticker,
  double? angle,
  StickerConstraint? constraint,
  StickerPosition? position,
  StickerSize? size,
}) {
  return StickerAsset(
    id: id,
    sticker: sticker ?? this.sticker,
    angle: angle ?? this.angle,
    constraint: constraint ?? this.constraint,
    position: position ?? this.position,
    size: size ?? this.size,
  );
}