ShareService class
App-facing share facade with empty-payload validation.
final share = ShareService();
await share.shareText('Look at this!', subject: 'Check it out');
await share.shareFiles(['/tmp/report.pdf'], text: 'Monthly report');
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
- Shares an arbitrary combination; throws ShareException.nothingToShare when both text and files are empty (a caller bug, surfaced early).
-
Shares
files(optionally withtext/subject). -
Shares
text(optionally with asubject). -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited