copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
InputAnimation copyWith({
InputFile? animation,
InputThumbnail? Function()? thumbnail,
List<int>? addedStickerFileIds,
int? duration,
int? width,
int? height,
}) => InputAnimation(
animation: animation ?? this.animation,
thumbnail: thumbnail != null ? thumbnail() : this.thumbnail,
addedStickerFileIds: addedStickerFileIds ?? this.addedStickerFileIds,
duration: duration ?? this.duration,
width: width ?? this.width,
height: height ?? this.height,
);