userInfo property

String get userInfo

获取Uri中的authority中的userInfo (如 http://user:password@host:80/path 中的 user:password)

Implementation

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