runSequence method
Executes this commands sequence
with the mapped args
or empty args
Implementation
Future<bool> runSequence(
[Map<String, Map<String, dynamic>> args = const {}]) async {
bool result = true;
final def = <String, dynamic>{};
for (var task in _sequence) {
if (!result) {
break;
} else {
final ta = (args.containsKey(task.name) ? args[task.name] : def)!;
result = await task.runWith(ta) ?? false;
}
}
return result;
}