email static method

Future<UComposeResult> email({
  1. List<String> to = const <String>[],
  2. List<String> cc = const <String>[],
  3. List<String> bcc = const <String>[],
  4. String? subject,
  5. String? body,
  6. bool isHtml = false,
  7. List<String> attachments = const <String>[],
})

Opens an email draft; attachments work on Android, iOS, macOS and Windows (not Linux/web). ULaunch.email(to: ["a@b.com"], subject: "Hi", attachments: [path])

Implementation

static Future<UComposeResult> email({
  List<String> to = const <String>[],
  List<String> cc = const <String>[],
  List<String> bcc = const <String>[],
  String? subject,
  String? body,
  bool isHtml = false,
  List<String> attachments = const <String>[],
}) => ULaunchChannel.email(to: to, cc: cc, bcc: bcc, subject: subject, body: body, isHtml: isHtml, attachments: attachments);