forEachRenderTree method

void forEachRenderTree(
  1. void func(
    1. int key,
    2. RenderTree value
    )
)

Implementation

void forEachRenderTree(void Function(int key, RenderTree value) func) {
  if (_renderTree.isNotEmpty) {
    final entryPtr = _renderTree.entries.iterator;
    if (entryPtr.moveNext()) {
      func(entryPtr.current.key, entryPtr.current.value);
    }
  }
}