StutterDetectStrategy constructor

StutterDetectStrategy({
  1. Duration stutterThreshold = _defaultStutterThreshold,
  2. void onStutterDetected(
    1. StutterInfo info
    )?,
})

创建卡顿检测策略

stutterThreshold Loading duration threshold for stutter detection. Defaults to 500ms. onStutterDetected Optional callback for stutter events.

Implementation

StutterDetectStrategy({
  this.stutterThreshold = _defaultStutterThreshold,
  this.onStutterDetected,
});