size property

int size

Implementation

int get size {
  int size = 0;
  for (final child in children.values) {
    if (child case VFile file) {
      size += file.data.length;
    } else if (child case VDir dir) {
      size += dir.size;
    }
  }
  return size;
}