WebUrlUtil class
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
encodeParam(
Map< String, dynamic> h5Params) → String? -
encodeParamValue(
dynamic h5ParamValue) → String? - 将对象转化为web url可识别的字符串参数(对且仅对第一层转化)
-
getAllParamsFromWebUrl(
String webUrl, {required bool paramToObjectIfOK}) → Map< String, dynamic> ? - 获取指定web地址的所有参数
-
getNewWebUrlByAddParams(
String currentWebUrl, Map< String, dynamic> addParams) → String - 为当前的 web url 添加其他额外参数(参数的值如果是对象,则会自动 jsonEncode)
-
getUrlHostFromWebUrl(
String webUrl) → String - 获取指定web地址的 url host
-
getValueFromWebParamValueString(
String? value, {bool paramToObjectIfOK = false}) → dynamic - 将字符串value按需求转成 string 或者 object(如果可以转的情况下)