setUrl method
Updates the layer's URL template and redraws it (unless noRedraw is set to true). If the URL does not change, the layer will not be redrawn unless the noRedraw parameter is set to false.
Implementation
external TileLayer setUrl(String url, [bool? noRedraw]);