stopBenchmark method

void stopBenchmark(
  1. String id,
  2. BuildContext context
)

Implementation

void stopBenchmark(String id, BuildContext context) {
  var debugWidget = context.findAncestorWidgetOfExactType<DebugWidget>();
  var benchmark = debugWidget?.state.benchmark;
  benchmark?.stop(id);
}