shareFile method

Future<bool> shareFile(
  1. XFile file, {
  2. String? phone,
  3. WhatsApp type = WhatsApp.standard,
})

Share file into whatsapp

phone is optional for Android, mandatory for Web, MacOS, Linux and Windows. But it will be ignored on iOS.

Implementation

Future<bool> shareFile(XFile file,
        {String? phone, WhatsApp type = WhatsApp.standard}) =>
    share(type: type, file: file, phone: phone);