Google is committed to advancing racial equity for Black communities. See how.

onDemand method

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

void onDemand (String name, OnDemandRootFn rootNodeCallback)

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

If methods on this class are called multiple times with the same name, a unique number will be appended to the name.

Implementation

void onDemand(String name, OnDemandRootFn rootNodeCallback);