shareText method

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

Share text message into whatsapp

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

Implementation

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