shareUrl method

Future<void> shareUrl({
  1. required String url,
  2. String? mimeType,
})

it will opened android share dialog.

await callIntent(
    intentType: AndroidIntentData.ACTION_SEND,
    extras: {AndroidIntentData.EXTRA_TEXT: url},
    mimeType: mimeType ?? "text/plain", // important
);

Implementation

Future<void> shareUrl({required String url, String? mimeType}) async {
  await callIntent(
    intentType: AndroidIntentData.ACTION_SEND,
    extras: {AndroidIntentData.EXTRA_TEXT: url},
    mimeType: mimeType ?? "text/plain", // important
  );
}