unInternal(type, listener) {
    const key = /** @type {Object} */ (listener).ol_key;
    if (key) {
      unByKey(key);
    } else if (Array.isArray(type)) {
      for (let i = 0, ii = type.length; i < ii; ++i) {
        this.removeEventListener(type[i], listener);
      }
    } else {
      this.removeEventListener(type, listener);
    }
  }
Unlisten for a certain type of event.
@param {string|Array<string>} type Type.
@param {function((Event|import("./events/Event").default)): ?} listener Listener.
@protected