You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
params.forEach((k, v) {
String val;
if (v is List) {
val = Uri.encodeComponent(v.map((p) => p.trim()).join(' '));
} else if (v is Map) {
val = jsonEncode(v);
} else {
val = v.toString().trim();
}
qsList.add(k + '=' + val);
});
Hello, I'm trying to use the next params
The function params2qs should check if the value is String before to do a
v.trim()
The text was updated successfully, but these errors were encountered: