getCities method

Future getCities (
  1. [Map<String, dynamic> params]
)

Returns a list of cities.

Params:

country_id (integer) Country ID.

region_id (integer) Region ID.

q (string) Search query.

need_all (boolean) '1' — to return all cities in the country, '0' — to return major cities in the country (default),

offset (integer) Offset needed to return a specific subset of cities.

count (integer) Number of cities to return., default: 100, max: 1000

Implementation

Future<dynamic> getCities([Map<String, dynamic> params]) async {
  return _api.request('database.getCities', {
    ...?params,
  });
}