uri property
Uri?
get
uri
Implementation
Uri? get uri => _uri;
set
uri
(dynamic url)
Implementation
set uri (dynamic url)
{
if (url is String)
{
var scheme = (System.app?.secure ?? false) ? "wss" : "ws";
_uri = URI.parse(url)?.replace(scheme: scheme);
}
else if (url is Uri) {
_uri = url;
}
}