Sequence constructor
Implementation
Sequence([List<Action>? actions]) {
if (actions != null && actions.isNotEmpty) {
var prev = actions[0];
for (var index = 1; index < actions.length - 1; index++) {
var seq = Sequence();
seq.initWithTowActions(prev, actions[index]);
prev = seq;
}
initWithTowActions(prev, actions[actions.length - 1]);
}
}