findTargetBuildConfiguration static method

dynamic findTargetBuildConfiguration(
  1. dynamic element,
  2. String uuid
)

Implementation

static dynamic findTargetBuildConfiguration(dynamic element, String uuid) {
  List<dynamic> results = [];
  try {
    for (var v in element.childrenList) {
      if (v.uuid == uuid) {
        results.add(v);
      }
      if (v.childrenList.isNotEmpty) {
        results.addAll(findTargetBuildConfiguration(v, uuid));
      }
    }
  } catch (e) {
    // Handle the case where childrenList is not available
  }
  return results;
}