copyWith method

TaskStatusUpdate copyWith({
  1. Task? task,
  2. TaskStatus? status,
  3. TaskException? exception,
  4. String? responseBody,
  5. Map<String, String>? responseHeaders,
  6. int? responseStatusCode,
  7. String? mimeType,
  8. String? charSet,
})

Implementation

TaskStatusUpdate copyWith(
        {Task? task,
        TaskStatus? status,
        TaskException? exception,
        String? responseBody,
        Map<String, String>? responseHeaders,
        int? responseStatusCode,
        String? mimeType,
        String? charSet}) =>
    TaskStatusUpdate(
        task ?? this.task,
        status ?? this.status,
        exception ?? this.exception,
        responseBody ?? this.responseBody,
        responseHeaders ?? this.responseHeaders,
        responseStatusCode ?? this.responseStatusCode,
        mimeType ?? this.mimeType,
        charSet ?? this.charSet);