DeviceSetupStep class abstract
The DeviceSetupStep
class represents a single step in the device setup process.
It is an abstract class that defines the interface for processing a DeviceConfigContext
.
Each concrete subclass must implement the execute
method to perform specific actions
on the provided context.
The DeviceSetupStep
class supports chaining by holding a reference to the next step,
allowing a sequence of steps to be linked together.
Example subclass implementation:
class Step1 extends DeviceSetupStep {
@override
Future<DeviceConfigContext> execute(DeviceConfigContext context) async {
// Perform specific actions to modify the context
// For example, set some properties or check conditions
return context.copyWith(...);
}
}
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- nextHandler ↔ DeviceSetupStep?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
execute(
DeviceConfigContext context) → Future< DeviceConfigContext> -
handle(
DeviceConfigContext context) → Future< DeviceConfigContext> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setNext(
DeviceSetupStep handler) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited