asList method
return this thins as a list, recurse through the tree preparation for e.g. csv conversion .
Implementation
List<List> asList({List<List> asList = const [], bool all = false}) {
//print("$number $name $desc tries to add to list");
if (name == "no name" && desc.length > 0)
asList.add([number, desc, cur, budget, valuta]);
else if (desc.length > 0) asList.add([name, desc, cur, budget, valuta]);
if (all) asList.add([name, desc, cur, budget, valuta]);
children.forEach((key, value) {
value.asList(asList: asList);
});
return asList;
}