setUpEach function
void
setUpEach(
- void callback()
Register a function to be run before each iteration of a benchmark.
This function will be called before each iteration of a benchmark is run.
If this is called within a group, it applies only to benchmarks in that
group. The callback
will be run after any set-up 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 order they were declared.
Implementation
void setUpEach(void Function() callback) => _g.setUpEach(callback);