UpdateCommand constructor

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

Implementation

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