RatakondalaArun/gitterapi

Type Error while performing search on rooms

Closed this issue · 0 comments

Gitter API returns Map instead of the List when we use the query parameter which throws TypeError.

Future<Result<List<dynamic>>> rooms({String query}) {
return _v._jsonRequest<List<dynamic>>(
_path,
// this make sures that query values is not null.
queryParameters: query == null ? {} : {'q': query},
);
}