getList method
Implementation
List<List<_ConditionUtil>> getList() {
var list = <List<_ConditionUtil>>[[]];
for (var child in _children) {
if (list.length == 1 && list[0].isEmpty) {
list = child.getList();
}
// is and
else if (_type != null && _type == _ConditionType.and) {
list = child.getList().map((inner) {
for (var inner2 in list) {
inner.insertAll(0, inner2);
}
return inner;
}).toList();
} else {
// is or
list.addAll(child.getList());
}
}
if (_generated != null) {
for (var outer in list) {
outer.insert(0, _generated!);
}
}
return list;
}