ConstOpen the share sheet with a text message.
The text to share. Must not be empty or only whitespace.
ok: true after the share sheet has closed, whether or not the user shared.
ok: false if the input is invalid or the share sheet could not be opened.
Open the share sheet with a link.
An absolute URI such as https://flutter.dev, or a URL object.
ok: true after the share sheet has closed, whether or not the user shared.
ok: false if the URI is invalid or the share sheet could not be opened.
Backed by the share_plus Flutter plugin. Requires the share plugin to be enabled in the app
configuration. Only text and URIs are supported.
Input is validated before sending, so invalid values return { ok: false } without
a round trip to Flutter. The share sheet is shown centered on the screen on iPad.
Share plugin for opening the native share sheet.