sum method
sum up the sub accounts below this one
Implementation
int sum() {
int mysum = valuta;
children.forEach((key, value) {
mysum += value.sum();
});
return mysum;
}
sum up the sub accounts below this one
int sum() {
int mysum = valuta;
children.forEach((key, value) {
mysum += value.sum();
});
return mysum;
}