DownloadEvent constructor
DownloadEvent({
- DownloadEventKind? kind,
- String? modelId,
- String? taskId,
- String? error,
- DownloadPlanResult? planResult,
- DownloadStartResult? startResult,
- DownloadProgress? progress,
- DownloadCancelResult? cancelResult,
- DownloadResumeResult? resumeResult,
Implementation
factory DownloadEvent({
DownloadEventKind? kind,
$core.String? modelId,
$core.String? taskId,
$core.String? error,
$1.DownloadPlanResult? planResult,
$1.DownloadStartResult? startResult,
$1.DownloadProgress? progress,
$1.DownloadCancelResult? cancelResult,
$1.DownloadResumeResult? resumeResult,
}) {
final result = create();
if (kind != null) result.kind = kind;
if (modelId != null) result.modelId = modelId;
if (taskId != null) result.taskId = taskId;
if (error != null) result.error = error;
if (planResult != null) result.planResult = planResult;
if (startResult != null) result.startResult = startResult;
if (progress != null) result.progress = progress;
if (cancelResult != null) result.cancelResult = cancelResult;
if (resumeResult != null) result.resumeResult = resumeResult;
return result;
}