ShareItem class

This defines shared items which will be given inside a ShareData object

Annotations
  • @JsonSerializable()

Constructors

ShareItem({required String data, required ShareItemType type, required String? mimeType})
ShareItem.fromJson(Map<String, dynamic> json)
factory

Properties

absoluteFilename String?
The absolute path on the filesystem, including the basename at the end
getter/setter pair
basename String?
The actual name of the file
getter/setter pair
data String
The actual content
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mimeType String?
The content mime type. Note: By this, you cannot differ between just text and a plain text file on Android. Both get the mimetype "text/plain". To differ between these two, use the type property. If the shared item is a folder, this is null, refer to type.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ShareItemType
This property tells you what the data contains, whether it's just text or a file. If it's a file on Android, the property data usually contains a content uri
getter/setter pair

Methods

abortFetch() → void
continueFetch() → void
getContents([int? chunkSize]) Stream<ShareItemChunk>?
Fetch the contents of the shared file
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseFetch() → void
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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