DeviceSetup constructor

DeviceSetup({
  1. required List<DeviceSetupStep> steps,
})

Implementation

DeviceSetup({
  required List<DeviceSetupStep> steps,
})  : assert(steps.isNotEmpty, 'steps list cannot be empty'),
      _chain = steps.first {
  // Iterate through the list and link each handler to the next one.
  for (int i = 0; i < steps.length - 1; i++) {
    steps[i].setNext(steps[i + 1]);
  }
}