queryParameters property

  1. @override
Map<String, String> get queryParameters

The query parameters for the endpoint.

Implementation

@override
Map<String, String> get queryParameters {
  final qp = {'q': term};
  if (offset != null) {
    qp['offset'] = offset.toString();
  }
  if (prefix) {
    qp['prefix'] = 'true';
  }
  if (limit != null) {
    qp['limit'] = limit.toString();
  }
  return qp;
}