copyWith method

LongTaskStatus copyWith({
  1. String? ari,
  2. String? id,
  3. LongTaskStatusName? name,
  4. int? elapsedTime,
  5. int? percentageComplete,
  6. bool? successful,
  7. bool? finished,
  8. List<Message>? messages,
  9. String? status,
  10. List<Message>? errors,
  11. LongTaskStatusAdditionalDetails? additionalDetails,
})

Implementation

LongTaskStatus copyWith(
    {String? ari,
    String? id,
    LongTaskStatusName? name,
    int? elapsedTime,
    int? percentageComplete,
    bool? successful,
    bool? finished,
    List<Message>? messages,
    String? status,
    List<Message>? errors,
    LongTaskStatusAdditionalDetails? additionalDetails}) {
  return LongTaskStatus(
    ari: ari ?? this.ari,
    id: id ?? this.id,
    name: name ?? this.name,
    elapsedTime: elapsedTime ?? this.elapsedTime,
    percentageComplete: percentageComplete ?? this.percentageComplete,
    successful: successful ?? this.successful,
    finished: finished ?? this.finished,
    messages: messages ?? this.messages,
    status: status ?? this.status,
    errors: errors ?? this.errors,
    additionalDetails: additionalDetails ?? this.additionalDetails,
  );
}