SlowOperationTimer constructor

SlowOperationTimer({
  1. required String description,
  2. int thresholdMs = defaultSlowOperationThresholdMs,
  3. void onSlow(
    1. SlowOperation
    )?,
})

Implementation

SlowOperationTimer({
  required this.description,
  this.thresholdMs = defaultSlowOperationThresholdMs,
  this.onSlow,
}) : _capturedStack = StackTrace.current {
  _stopwatch.start();
}