CustomDevtoolsService class final
Service for analyzing visual trees in Flutter applications using the VM Service and Widget Inspector.
- Inheritance
-
- Object
- BaseDevtoolsService
- CustomDevtoolsService
Constructors
- CustomDevtoolsService.new({required DartVmDevtoolsService devtoolsService})
Properties
- devtoolsService → DartVmDevtoolsService
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callPlaygroundFunction(
Map< String, dynamic> params) → Future<RPCResponse> - This function is used as playground for testing.
-
getDiagnosticTree(
{bool isSummaryTree = true, bool withPreviews = false, bool fullDetails = false}) → Future< RPCResponse> - Gets the diagnostic tree for the current Flutter widget tree. Returns a RemoteDiagnosticsNode representing the root of the tree. Each node contains:
-
getNodeChildren(
String nodeId, String groupName, {bool isSummaryTree = false}) → Future< RPCResponse> -
Gets all children of a specific node in the diagnostic tree.
nodeId
is the ID of the node to get children forgroupName
is the name of the object group that contains the nodeisSummaryTree
if true, returns a summarized version of the children Returns a list of all child nodes with their basic information -
getNodeDetails(
String nodeId, String groupName) → Future< RPCResponse> -
Gets detailed information about a specific node in the diagnostic tree.
nodeId
is the ID of the node to get details forgroupName
is the name of the object group that contains the node Returns detailed information about the node including: -
init(
) → Future< void> -
initObjectGroup(
{required String debugName}) → ObjectGroupManager -
inherited
-
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