canSendMail static method

Future<bool> canSendMail()

returns true if can MFMailComposeViewController canSendMail is true other wise returns false

IOS only

returns false on other platforms

Implementation

static Future<bool> canSendMail() async {
  if (!Platform.isIOS) {
    return false;
  }

  return _channel
      .invokeMethod<bool>('canSendMail')
      .then<bool>((bool? value) => value ?? false);
}