int _computeSize()

in lib/src/hierarchy_view.dart [319:331]


int _computeSize(Map<String, dynamic> info, Function fetchElement,
    {bool force: false}) {
  if (info.containsKey('size') && info['size'] != null && !force) {
    return _toInt(info['size']);
  } else if (info.containsKey('children')) {
    return info['children']
        .map(fetchElement)
        .map((a) => _computeSize(a, fetchElement))
        .fold(0, (a, b) => a + b);
  } else {
    return 0;
  }
}