MockFileTransferHandler class
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
-
cancelTask(String taskId)
→ Future<bool>
-
Cancels an ongoing transfer task.
override
-
configureQueue({required bool isEnabled, int maxConcurrent = 1, double cleanupDelay = 0})
→ Future<void>
-
Configure the transfer queue behavior
override
-
deleteTask(String taskId)
→ Future<bool>
-
Deletes a task from the queue and cleans up associated resources.
Returns true if the task was successfully deleted, false if the task wasn't found.
override
-
getDownloadProgress(String taskId)
→ Stream<double>
-
Gets a stream of progress updates for a download task.
override
-
getQueuedTransfers()
→ Future<List<Map<String, dynamic>>>
-
Get list of queued transfers with their details
override
-
getQueueStatus()
→ Future<Map<String, dynamic>>
-
Get details about the current queue status
override
-
getUploadProgress(String taskId)
→ Stream<double>
-
Gets a stream of progress updates for an upload task.
override
-
isDownloadComplete(String taskId)
→ Future<bool>
-
Checks if a download task has completed successfully.
override
-
isUploadComplete(String taskId)
→ Future<bool>
-
Checks if an upload task has completed successfully.
override
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
startDownload({required String fileUrl, required String savePath, })
→ Future<String>
-
Starts a file download operation in the background.
override
-
startUpload({required String filePath, required String uploadUrl, Map<String, String>? fields})
→ Future<String>
-
Starts a file upload operation in the background.
override
-
toString()
→ String
-
A string representation of this object.
inherited