buildQuery method

  1. @protected
String buildQuery(
  1. Map<String, dynamic> params
)
inherited

Implementation

@protected
String buildQuery(Map<String, dynamic> params) {
  final query = [];
  params.forEach((key, val) {
    if (val != null) {
      if (val is Iterable) {
        query.add("$key=${val.map((v) => v.toString()).join("|")}");
      } else {
        query.add('$key=${val.toString()}');
      }
    }
  });
  return query.join('&');
}