ConnectivityInitTask class
Startup task #2 — initialises InternetCubit so connectivity state is available before the auth check runs.
Runs in the StartupPhase.environmentAndConnectivity phase. The task completes regardless of whether the device is online; offline state is logged as a warning and the app continues with cached data.
- Inheritance
-
- Object
- StartupTask
- ConnectivityInitTask
Constructors
- ConnectivityInitTask({required InternetCubit internetCubit, required AppLogger logger})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → StartupTaskId
-
A unique identifier for this task, used for logging and ordering.
no setteroverride
- label → String
-
A short human-readable description shown on the splash screen while this task runs.
no setteroverride
- phase → StartupPhase
-
The startup phase this task belongs to.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute(
{void onSubProgress(double subFraction)?}) → Future< void> -
Performs the startup work for this task.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited