captureChain static method

void captureChain(
  1. dynamic body()
)

Wraps specified method invocation with Chain.capture() which instructs the VM to capture longer stack traces.

Implementation

static void captureChain(dynamic Function() body) {
  Chain.capture(() {
    body();
  });
}