ConditionalSamplingEventTrigger constructor

ConditionalSamplingEventTrigger({
  1. required String measureType,
  2. ConditionalEventEvaluator? resumeCondition,
  3. ConditionalEventEvaluator? pauseCondition,
})

Create a trigger that triggers when a measure of measureType is collected, and checks the resumeCondition and pauseCondition to determine if the task should be resumed or paused, respectively.

Implementation

ConditionalSamplingEventTrigger({
  required this.measureType,
  this.resumeCondition,
  this.pauseCondition,
}) : super();