shouldCaptureStep method

bool shouldCaptureStep(
  1. String stepType
)

Implementation

bool shouldCaptureStep(String stepType) {
  if (!enabled) return false;
  if (excludeSteps.contains(stepType)) return false;
  if (includeSteps.isNotEmpty && !includeSteps.contains(stepType)) {
    return false;
  }
  return true;
}