childrenCount property

int childrenCount
getter/setter pair

Implementation

late int childrenCount = () {
  final dynamic currentValue = value;

  if (currentValue is Map<String, dynamic>) {
    return currentValue.keys.length;
  }

  if (currentValue is List) {
    return currentValue.length;
  }

  return 0;
}();