copyWith method
ReplaceStickerInSet
copyWith({
- int? userId,
- String? name,
- InputFile? oldSticker,
- NewSticker? newSticker,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
ReplaceStickerInSet copyWith({
int? userId,
String? name,
InputFile? oldSticker,
NewSticker? newSticker,
}) => ReplaceStickerInSet(
userId: userId ?? this.userId,
name: name ?? this.name,
oldSticker: oldSticker ?? this.oldSticker,
newSticker: newSticker ?? this.newSticker,
);