TaskTransfer class

Represents a file transfer task with its current state and progress

Constructors

TaskTransfer({required String taskId, required String type, required String url, required String path, Map<String, String> headers = const {}, Map<String, String> fields = const {}, required String createdAt, required double progress, required String status})
TaskTransfer.fromMap(Map<String, dynamic> map)
Creates a TaskTransfer instance from a map
factory

Properties

createdAt String
When the transfer was created
final
fields Map<String, String>
Form fields for multipart uploads
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
HTTP headers used in the transfer
final
path String
Local file path (destination path for downloads, source path for uploads)
final
progress double
Current progress (0.0 to 1.0)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
Current status of the transfer
final
taskId String
Unique identifier for the transfer task
final
type String
Type of transfer ('download' or 'upload')
final
url String
URL for the transfer (source URL for downloads, destination URL for uploads)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Converts the TaskTransfer instance to a map
toString() String
A string representation of this object.
override

Operators

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