searchByText method
      
Future<PlacesSearchResponse> 
searchByText(
    
    
- String query, {
- Location? location,
- num? radius,
- PriceLevel? minprice,
- PriceLevel? maxprice,
- bool opennow = false,
- String? type,
- String? pagetoken,
- String? language,
- String? region,
Implementation
Future<PlacesSearchResponse> searchByText(
  String query, {
  Location? location,
  num? radius,
  PriceLevel? minprice,
  PriceLevel? maxprice,
  bool opennow = false,
  String? type,
  String? pagetoken,
  String? language,
  String? region,
}) async {
  final url = buildTextSearchUrl(
    query: query,
    location: location,
    language: language,
    region: region,
    type: type,
    radius: radius,
    minprice: minprice,
    maxprice: maxprice,
    pagetoken: pagetoken,
    opennow: opennow,
  );
  return _decodeSearchResponse(await doGet(url, headers: apiHeaders));
}