copyWith method
Task
copyWith(
{ - TaskStatus? status,
- String? statusMessage,
- String? lastUpdatedAt,
- int? ttlMs,
- int? pollIntervalMs,
- Map<String, dynamic>? inputRequests,
- Map<String, dynamic>? result,
- 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,
);