setUrl method

void setUrl(
  1. String newUrl
)

Sets the url of the Matomo endpoint and updates the dispatcher.

Note that this will change the url used by the request that are still in the queue.

Implementation

void setUrl(String newUrl) {
  _initializationCheck();

  _url = newUrl;
  _dispatcher = _dispatcher.copyWith(baseUrl: newUrl);
}