FileReceiver class
A class that handles receiving files over a WebSocket connection and saving them to disk.
This class connects to a WebSocket server, listens for incoming file data, and writes the data to a file on disk. It supports receiving data in chunks and ensures the file is saved correctly.
Constructors
- FileReceiver()
- Constructor for FileReceiver that initializes the receiver with a server URL.
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
-
receiveFileData(
dynamic data, String tempFileName) → Future< String?> - Receives file data and writes it to disk.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited