shareFile method
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);