toStringDeep method
Returns a detailed string representation of the subtree starting at the origin.
This method provides a depth-first traversal representation of the subtree, showing detailed information about each widget in the hierarchy. It is particularly useful for debugging and visualizing the structure of the subtree.
Example usage:
final WidgetTreeSnapshot snapshot = currentWidgetTreeSnapshot();
final ScopedWidgetTreeSnapshot scopedSnapshot = snapshot.scope(snapshot.origin);
final String deepString = scopedSnapshot.toStringDeep();
Implementation
String toStringDeep() {
return origin.element.toStringDeep();
}