query property

String get query

获取Uri中的query 如果该字符串不是Url 将抛出 FormatException

Implementation

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