copyWith method

Task copyWith({
  1. TaskStatus? status,
  2. String? statusMessage,
  3. String? lastUpdatedAt,
  4. int? ttlMs,
  5. int? pollIntervalMs,
  6. Map<String, dynamic>? inputRequests,
  7. Map<String, dynamic>? result,
  8. Map<String, dynamic>? error,
})

Implementation

Task copyWith({
  TaskStatus? status,
  String? statusMessage,
  String? lastUpdatedAt,
  int? ttlMs,
  int? pollIntervalMs,
  Map<String, dynamic>? inputRequests,
  Map<String, dynamic>? result,
  Map<String, dynamic>? error,
}) =>
    Task(
      taskId: taskId,
      status: status ?? this.status,
      createdAt: createdAt,
      lastUpdatedAt: lastUpdatedAt ?? this.lastUpdatedAt,
      statusMessage: statusMessage ?? this.statusMessage,
      ttlMs: ttlMs ?? this.ttlMs,
      pollIntervalMs: pollIntervalMs ?? this.pollIntervalMs,
      inputRequests: inputRequests ?? this.inputRequests,
      result: result ?? this.result,
      error: error ?? this.error,
    );