getRegions method

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

Returns a list of regions.

Params:

country_id (integer) Country ID, received in database.getCountries method.

q (string) Search query.

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

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

Implementation

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