copyWith method
EmailPayload
copyWith({
- EmailFrom? from,
- List<
EmailAccount> ? to, - List<
EmailAccount> ? cc, - List<
EmailAccount> ? bcc, - String? subject,
- String? body,
- Map<
String, dynamic> ? headers, - String? text,
- List<
EmailAttachment> ? attachments, - String? category,
- Map<
String, dynamic> ? variables, - Map<
String, dynamic> ? tags,
Implementation
EmailPayload copyWith({
EmailFrom? from,
List<EmailAccount>? to,
List<EmailAccount>? cc,
List<EmailAccount>? bcc,
String? subject,
String? body,
Map<String, dynamic>? headers,
String? text,
List<EmailAttachment>? attachments,
String? category,
Map<String, dynamic>? variables,
Map<String, dynamic>? tags,
}) =>
EmailPayload(
from: from ?? this.from,
to: to ?? this.to,
cc: cc ?? this.cc,
bcc: bcc ?? this.bcc,
subject: subject ?? this.subject,
body: body ?? this.body,
headers: headers ?? this.headers,
text: text ?? this.text,
attachments: attachments ?? this.attachments,
category: category ?? this.category,
variables: variables ?? this.variables,
tags: tags ?? this.tags,
);