tearDownAll function

void tearDownAll(
  1. void callback()
)

Registers a function to be run once after all benchmarks.

If this is called within a test group, callback will run after all benchmarks in that group. It will be run before any tearDownAll callbacks in parent groups or at the top level.

Note: This function makes it very easy to accidentally introduce hidden dependencies between benchmarks that should be isolated. In general, you should prefer tearDown, and only use tearDownAll if the callback is prohibitively slow.

Implementation

void tearDownAll(void Function() callback) => _g.tearDownAll(callback);