copyWith method
- StartupStatus? status,
- int? completedCount,
- int? totalCount,
- String? currentLabel,
- double? subTaskFraction,
- JailbreakAppException? jailbreakException,
- ForceUpdateException? forceUpdateException,
- String? errorMessage,
Returns a copy of this state with the given fields replaced.
Fields that are not provided retain their current values.
Implementation
StartupState copyWith({
StartupStatus? status,
int? completedCount,
int? totalCount,
String? currentLabel,
double? subTaskFraction,
JailbreakAppException? jailbreakException,
ForceUpdateException? forceUpdateException,
String? errorMessage,
}) {
return StartupState(
status: status ?? this.status,
completedCount: completedCount ?? this.completedCount,
totalCount: totalCount ?? this.totalCount,
currentLabel: currentLabel ?? this.currentLabel,
subTaskFraction: subTaskFraction ?? this.subTaskFraction,
jailbreakException: jailbreakException ?? this.jailbreakException,
forceUpdateException: forceUpdateException ?? this.forceUpdateException,
errorMessage: errorMessage ?? this.errorMessage,
);
}