TaskStatusUpdate class

A status update

Contains TaskStatus and, if TaskStatus.failed possibly a TaskException and if this is a final state possibly responseBody, responseHeaders, responseStatusCode, mimeType and charSet. Note: header names in responseHeaders are converted to lowercase

Inheritance

Constructors

TaskStatusUpdate(Task task, TaskStatus status, [TaskException? exception, String? responseBody, Map<String, String>? responseHeaders, int? responseStatusCode, String? mimeType, String? charSet])
const
TaskStatusUpdate.fromJson(Map<String, dynamic> json)
Create object from json
TaskStatusUpdate.fromJsonString(String jsonString)
Create object from jsonString
factory

Properties

charSet String?
final
exception TaskException?
final
hashCode int
The hash code for this object.
no setterinherited
mimeType String?
final
responseBody String?
final
responseHeaders Map<String, String>?
final
responseStatusCode int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status TaskStatus
final
task Task
finalinherited

Methods

copyWith({Task? task, TaskStatus? status, TaskException? exception, String? responseBody, Map<String, String>? responseHeaders, int? responseStatusCode, String? mimeType, String? charSet}) TaskStatusUpdate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Return JSON Map representing object
override
toString() String
A string representation of this object.
inherited

Operators

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