UShareFile class

A file to share: a path on disk, or bytes with a name.

Annotations

Constructors

UShareFile.bytes(Uint8List bytes, {required String name, String? mimeType})
A file from bytes. UShareFile.bytes(data, name: "a.pdf")
const
UShareFile.path(String path, {String? mimeType, String? name})
A file from disk. UShareFile.path("/path/a.pdf")
const

Properties

bytes → Uint8List?
A file from bytes. UShareFile.bytes(data, name: "a.pdf")
final
fileName → String
Name used for the file.
no setter
hashCode → int
The hash code for this object.
no setterinherited
mimeType → String?
MIME type (guessed from the name when null).
final
name → String?
File name shown to the receiving app.
final
path → String?
A file from disk. UShareFile.path("/path/a.pdf")
final
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

Operators

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