copyWith method

  1. @override
StickerFullTypeRegular copyWith({
  1. File? premiumAnimation()?,
})
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
StickerFullTypeRegular copyWith({
  File? Function()? premiumAnimation,
}) =>
    StickerFullTypeRegular(
      premiumAnimation: premiumAnimation != null
          ? premiumAnimation()
          : this.premiumAnimation,
    );