count property
Implementation
int get count {
int count = 0;
for (final child in children.values) {
if (child is File) {
count += 1;
} else if (child case VDir dir) {
count += dir.count;
}
}
return count;
}
int get count {
int count = 0;
for (final child in children.values) {
if (child is File) {
count += 1;
} else if (child case VDir dir) {
count += dir.count;
}
}
return count;
}