getCountries method
Returns a list of countries.
Params:
need_all
(boolean) '1' — to return a full list of all countries, '0' — to return a list of countries near the current user's country (default).
code
(string) Country codes in ISO 3166-1 alpha-2 standard.
offset
(integer) Offset needed to return a specific subset of countries.
count
(integer) Number of countries to return., default: 100, max: 1000
Implementation
Future<dynamic> getCountries([Map<String, dynamic> params]) async {
return _api.request('database.getCountries', {
...?params,
});
}