allWidgets property

List<Widget> allWidgets

Returns the Widgets in depth-first order

Implementation

List<Widget> get allWidgets {
  _ensureSnapshotIsFromThisFrame();
  return allNodes.map((it) => it.element.widget).toList();
}