sendMail method

  1. @override
Future<void> sendMail(
  1. List<String> emailAddress,
  2. String subject,
  3. String body,
  4. String? attachment,
  5. List<String>? cc,
  6. List<String>? bcc,
)
override

Implementation

@override
Future<void> sendMail(List<String> emailAddress, String subject, String body,
    String? attachment, List<String>? cc, List<String>? bcc) async {
  await methodChannel.invokeMethod<bool>('sendMail', <String, dynamic>{
    "emailAddress": emailAddress,
    "subject": subject,
    "body": body,
    if (cc != null) "cc": cc,
    if (bcc != null) "bcc": bcc,
    if (attachment != null) "attachment": attachment,
  });
}