SharePlatform class

The interface that implementations of share_plus must implement.

Inheritance
  • Object
  • PlatformInterface
  • SharePlatform
Implementers

Constructors

SharePlatform()
Constructs a SharePlatform.

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>
Share text.
shareFiles(List<String> paths, {List<String>? mimeTypes, String? subject, String? text, Rect? sharePositionOrigin}) Future<void>
Share files.
shareFilesWithResult(List<String> paths, {List<String>? mimeTypes, String? subject, String? text, Rect? sharePositionOrigin}) Future<ShareResult>
Share files with Result.
shareUri(Uri uri, {Rect? sharePositionOrigin}) Future<void>
Share uri.
shareWithResult(String text, {String? subject, Rect? sharePositionOrigin}) Future<ShareResult>
Share text with Result.
shareXFiles(List<XFile> files, {String? subject, String? text, Rect? sharePositionOrigin}) Future<ShareResult>
Share XFile objects with Result.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance SharePlatform
The default instance of SharePlatform to use.
getter/setter pair