toUri method

Uri toUri([
  1. bool useTls = true
])

Get this EndPoint as a Uri

Implementation

Uri toUri([bool useTls = true]) {
  return Uri(scheme: useTls ? 'https' : 'http', host: address, port: port);
}