parentLayer._debugCheckNotUsedAsOldLayer();

      if (parentLayer._debugChildren == null || parentLayer._debugChildren.isEmpty) {
        return;
      }

      parentLayer._debugChildren.forEach(recursivelyCheckChildrenUsedOnce);
    }

    recursivelyCheckChildrenUsedOnce(layer);

    return true;
  }());

  final _EngineLayerWrapper wrapper = retainedLayer as _EngineLayerWrapper;
  _addRetained(wrapper._nativeLayer);
}</code></pre>
    </section>

  </div> <!-- /.main-content -->

  <div id="dartdoc-sid