toAor method

String toAor({
  1. bool showPort = false,
})

Implementation

String toAor({bool showPort = false}) {
  String aor = '$_scheme:';

  if (user != null) {
    aor += '${utils.escapeUser(user!)}@';
  }
  aor += _host;
  if (showPort && (_port != null || _port == 0)) {
    aor += ':$_port';
  }

  return aor;
}