authority property

String get authority

获取Uri中的authority(如 http://www.abcd.com:8080 中的 www.abcd.com:8080)

Implementation

String get authority {
  try {
    return toUri?.authority ?? "";
  } catch (_) {
    return "";
  }
}