StartupState class final
The immutable state emitted by StartupCubit.
Carries enough information for the splash screen to render a smooth progress indicator, show a descriptive label, and handle terminal error states.
Constructors
- StartupState({required StartupStatus status, int completedCount = 0, int totalCount = 0, String currentLabel = '', double? subTaskFraction, JailbreakAppException? jailbreakException, ForceUpdateException? forceUpdateException, String? errorMessage})
-
const
- StartupState.initial()
-
The state before startup has begun.
const
Properties
- completedCount → int
-
The number of tasks that have finished successfully.
final
- currentLabel → String
-
A human-readable label for the task currently in progress.
final
- errorMessage → String?
-
A diagnostic message when status is StartupStatus.failed, otherwise
null.final - forceUpdateException → ForceUpdateException?
-
The force-update exception when status is StartupStatus.forceUpdateRequired, otherwise
null.final - hashCode → int
-
The hash code for this object.
no setterinherited
- isJailbroken → bool
-
Whether the device has been detected as jailbroken or rooted.
no setter
- jailbreakException → JailbreakAppException?
-
The jailbreak exception when status is StartupStatus.jailbreakDetected, otherwise
null.final - progressPercent → int
-
The startup progress as a percentage (0–100).
no setter
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- requiresForceUpdate → bool
-
Whether the installed app version is below the remote-config minimum.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → StartupStatus
-
The current phase of the startup sequence.
final
- stringify → bool?
-
If set to
true, the toString method will be overridden to output this instance's props.no setterinherited - subTaskFraction → double?
-
When the active task reports intra-task progress, holds the global
progress fraction (0.0–1.0). Takes precedence over completedCount /
totalCount in progressPercent so the splash bar moves continuously
during long-running tasks.
final
- totalCount → int
-
The total number of tasks to run.
final
Methods
-
copyWith(
{StartupStatus? status, int? completedCount, int? totalCount, String? currentLabel, double? subTaskFraction, JailbreakAppException? jailbreakException, ForceUpdateException? forceUpdateException, String? errorMessage}) → StartupState - Returns a copy of this state with the given fields replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited