addGetParam method

Uri addGetParam(
  1. Map<String, dynamic> param
)

Implementation

Uri addGetParam(Map<String, dynamic> param) {
  var resultPath = this;
  var paramUrl = '';
  var list = param.entries.toList();
  for (var i = 0; i < list.length; i++) {
    paramUrl += "${i == 0 ? "?" : "&"}${list[i].key}=${list[i].value}";
  }

  return Uri.parse("$resultPath$paramUrl");
}