SafStream class
Constructors
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
-
endWriteStream(
String session) → Future< void> -
Closes an out stream identified by the given
session
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFile(
Uri uri, {int? bufferSize}) → Future< Stream< Uint8List> > -
Creates a stream from the given
uri
. -
readFileToLocal(
Uri src, String dest) → Future< void> -
Copies a file from the given
uri
to thedest
. -
startWriteStream(
Uri treeUri, String fileName, String mime) → Future< SafWriteStreamInfo> -
Returns a SafWriteStreamInfo. Call writeChunk with the
session
from SafWriteStreamInfo to write data into the destination stream. Call endWriteStream close the destination stream. -
toString(
) → String -
A string representation of this object.
inherited
-
writeChunk(
String session, Uint8List data) → Future< void> -
Writes the given
data
to an out stream identified by the givensession
. -
writeFileFromLocal(
String localSrc, Uri treeUri, String fileName, String mime) → Future< Uri> -
Copies the contents of
localSrc
and creates a new file from the giventreeUri
,fileName
andmime
. Returns the Uri of the created file.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited