LogicCommand constructor

LogicCommand(
  1. dynamic actions,
  2. dynamic step
)

Implementation

LogicCommand(this.actions, step) {
  if (step is List && step.length > 0) {
    actions.add(step);
  }
}