MethodChannelShare class

Plugin for summoning a platform share sheet.

Inheritance

Constructors

MethodChannelShare()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
share(String text, {String? subject, Rect? sharePositionOrigin}) Future<void>
Summons the platform's share sheet to share text.
override
shareFiles(List<String> paths, {List<String>? mimeTypes, String? subject, String? text, Rect? sharePositionOrigin}) Future<void>
Summons the platform's share sheet to share multiple files.
override
shareFilesWithResult(List<String> paths, {List<String>? mimeTypes, String? subject, String? text, Rect? sharePositionOrigin}) Future<ShareResult>
Summons the platform's share sheet to share multiple files and returns the result.
override
shareUri(Uri uri, {Rect? sharePositionOrigin}) Future<void>
Share uri.
override
shareWithResult(String text, {String? subject, Rect? sharePositionOrigin}) Future<ShareResult>
Summons the platform's share sheet to share text and returns the result.
override
shareXFiles(List<XFile> files, {String? subject, String? text, Rect? sharePositionOrigin}) Future<ShareResult>
Summons the platform's share sheet to share multiple files.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

channel → const MethodChannel
MethodChannel used to communicate with the platform side.