getSearchSuggestions method

Future<List<String>> getSearchSuggestions(
  1. String query
)

Retrieves search suggestions for a given query.

Implementation

Future<List<String>> getSearchSuggestions(String query) async {
  final response = await constructRequest("music/get_search_suggestions",
      body: {"input": query});

  return traverseList(response, ["query"]).whereType<String>().toList();
}