WidgetRecorder constructor

WidgetRecorder({
  1. required String name,
  2. bool useCustomWarmUp = false,
})

Creates a widget benchmark recorder.

name must not be null.

If useCustomWarmUp is true, delegates the benchmark warm-up to the benchmark implementation instead of using a built-in strategy. The benchmark is expected to call Profile.stopWarmingUp to signal that the warm-up phase is finished.

Implementation

WidgetRecorder({
  required String name,
  this.useCustomWarmUp = false,
}) : super._(name, true);