paramsToString static method Null safety
Implementation
static String paramsToString(Map<String, String>? params) {
if (params == null) return "";
String output = "?";
params.forEach((key, value) {
output += "$key=$value&";
});
return output.substring(0, output.length - 1);
}