build method
Implementation
Email build() {
if (_from == null) {
throw ArgumentError("Sender (from) address is required.");
}
// if (_to.isEmpty && _cc.isEmpty && _bcc.isEmpty) {
// throw ArgumentError(
// "At least one recipient (to/cc/bcc) must be specified.",
// );
// }
return Email(
sender: _from!,
subject: _subject,
message: _message ?? "",
to: _to,
cc: _cc,
bcc: _bcc,
replyTo: _replyTo,
);
}