Share class

Summoning a platform share sheet.

Constructors

Share.file({ShareType? mimeType = ShareType.typeFile, required String title, required String path, String text = ''})
The type of our WhatsApp chat
const
Share.image({ShareType? mimeType = ShareType.typeImage, required String title, required String path, String text = ''})
const
Share.multiple({ShareType? mimeType = ShareType.typeFile, required String title, required List<Share> shares})
const
Share.nullType()
Share.plainText({required String title, required String text})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isMultiple bool
no setter
isNull bool
no setter
mimeType ShareType?
final
path String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shares List<Share>
final
text String
final
title String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromReceived(Map received) Share

Constants

isMultipleString → const String
pathString → const String
textString → const String
titleString → const String
typeString → const String