setTrace(trace) {
    let condition;
    if (!trace) {
      condition = never;
    } else if (trace === true) {
      condition = always;
    } else {
      condition = trace;
    }
    this.traceCondition_ = condition;
  }
Toggle tracing mode or set a tracing condition.

@param {boolean|import("../events/condition.js").Condition} trace A boolean to toggle tracing mode or an event
    condition that will be checked when a feature is clicked to determine if tracing should be active.