Inspect class

*[<Null safety>](https://dart.dev/null-safety)*

Constructors

Inspect ()

Returns a singleton Inspect instance at root.inspect factory

Inspect.forTesting (FakeVmoHolder vmo)

Returns a new Inspect object at root.inspect backed by a fake VMO intended for unit testing inspect integrations, so that they can run as host tests. factory

Properties

hashCode → int

The hash code for this object.
read-only, inherited

health → HealthNode

The health Node of this Inspect tree.
read-only

rootNode?

The root Node of this Inspect tree.
read-only

runtimeType → Type

A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
inherited

onDemand(String name, OnDemandRootFn rootNodeCallback) void

Mounts an Inspect file at .inspect whose contents are dynamically created by rootNodeCallback on each read.

serve(Outgoing outgoing) void

Attaches the inspect to the outgoing diagnostics/debug dir.

toString() String

A string representation of this object.
inherited

Operators

operator ==(Object other) bool

The equality operator.
inherited

Static Properties

nameToInstanceCount ↔ Map<String, int>

Maps an inspect instance name to the number of instantiations of that inspector. Used to deduplicate requests for similarly named inspectors.
read / write

Static Methods

configure({int? vmoSizeBytes}) void

Optionally configure global settings for inspection.

nextInstanceWithName(String name) String