shareText method

void shareText (
  1. String text,
  2. String mimeType,
  3. {String shareTitle: 'Share with',
  4. String appToShare: ''}


static void shareText(
    String text,  //The text to share
    String mimeType, // The type of text your sharing  ie text/txt
      String shareTitle = 'Share with', // The title that appears in the share pop up
      String appToShare = '' //The app you want to use to share with, if blank will pop up the share choose ie 'com.whatsapp'

) {
  Map argsMap = <String, String>{
    'shareTitle': '$shareTitle',
    'text': '$text',
    'mimeType': '$mimeType',
    'appToShare': '$appToShare'
  _channel.invokeMethod('shareText', argsMap);