setup method
Starts the setup process by passing the context
to the first handler in the chain.
If no context is provided, the default context DeviceSetupContext.empty
is used.
Returns a Future<DeviceSetupContext>
representing the final context after all steps
have processed it.
The context
parameter is the initial setup context to be processed. If not provided,
the default empty context is used.
Example usage with a custom context:
DeviceSetupContext initialContext = DeviceSetupContext(id: '123', label: 'My Device');
DeviceSetupContext result = await deviceSetup.setup(customContext);
Implementation
Future<DeviceConfigContext> setup(
[DeviceConfigContext context = DeviceConfigContext.empty]) {
return _chain.handle(context);
}