ShareIt class
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
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
android({required ShareItAndroidParameters parameters})
→ _AndroidShareSheet
-
You need to call
present()
to present the share sheet
-
androidFile({required MIMEType mimeType, required String path, String? title})
→ Future<bool>
-
-
androidList({required List<ShareItAndroidParameters> parameters})
→ _AndroidShareSheet
-
You need to call
present()
to present the share sheet
-
androidText({required String content, String? title})
→ Future<bool>
-
-
file({required String path, required ShareItFileType type, String? androidSheetTitle})
→ Future<bool>
-
-
iOS({required ShareItIOSParameters parameters})
→ _IOSActivityViewController
-
You need to call
present()
to present the share sheet
-
iOSFile({required IOSDataType dataType, required String path})
→ Future<bool>
-
-
iOSLink({required String link})
→ Future<bool>
-
-
iOSList({required List<ShareItIOSParameters> parameters})
→ _IOSActivityViewController
-
You need to call
present()
to present the share sheet
-
iOSText({required String content})
→ Future<bool>
-
-
link({required String url, String? androidSheetTitle})
→ Future<bool>
-
-
list({String? androidSheetTitle, required List<ShareItParameters> parameters})
→ Future<bool>
-
-
text({required String content, String? androidSheetTitle})
→ Future<bool>
-
androidSheetTitle
is ignored on iOS
- if content is a valid url string, it will be converted into a
URL
object for iOS