McpTreeInspector class

Inspector del árbol de widgets de Flutter.

Lee el estado actual del árbol sin agregar ningún widget. Ideal para que Claude verifique valores, estados y contenidos en pantalla.

Uso:

final json = McpTreeInspector.inspect();
// json['widgets'] → lista de todos los widgets con datos

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

inspect() Map<String, dynamic>
Recorre el árbol completo y retorna un JSON con todos los widgets que contienen datos relevantes para testing.