copyWith method
SendBusinessMessageAlbum
copyWith({
- String? businessConnectionId,
- int? chatId,
- InputMessageReplyTo? replyTo()?,
- bool? disableNotification,
- bool? protectContent,
- int? effectId,
- List<
InputMessageContent> ? inputMessageContents,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
SendBusinessMessageAlbum copyWith({
String? businessConnectionId,
int? chatId,
InputMessageReplyTo? Function()? replyTo,
bool? disableNotification,
bool? protectContent,
int? effectId,
List<InputMessageContent>? inputMessageContents,
}) => SendBusinessMessageAlbum(
businessConnectionId: businessConnectionId ?? this.businessConnectionId,
chatId: chatId ?? this.chatId,
replyTo: replyTo != null ? replyTo() : this.replyTo,
disableNotification: disableNotification ?? this.disableNotification,
protectContent: protectContent ?? this.protectContent,
effectId: effectId ?? this.effectId,
inputMessageContents: inputMessageContents ?? this.inputMessageContents,
);