tearDown function
void
tearDown(
- void callback()
Register a function to be run after each iteration of a benchmark.
This function will be called after each iteration of a benchmark is run.
If this is called within a group, it applies only to tests in that
group. The callback
will be run before any tear-down callbacks in parent
groups or at the top level.
Each callback at the top level or in a given group will be run in the reverse of the order they were declared.
Implementation
void tearDown(void Function() callback) => _g.tearDown(callback);