copyWith method

StartupState copyWith({
  1. StartupStatus? status,
  2. int? completedCount,
  3. int? totalCount,
  4. String? currentLabel,
  5. double? subTaskFraction,
  6. JailbreakAppException? jailbreakException,
  7. ForceUpdateException? forceUpdateException,
  8. 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,
  );
}