method method
VK Api request
Implementation
Future method(String method, {Map<String, dynamic>? params}) async {
if (params == null) params = {"v": "$versionApi"};
params['access_token'] = token;
params['v'] = versionApi;
http.Response res = await http.post(Uri.parse('$_baseUrl$method'), body: params);
var jsonRes = await jsonDecode(res.body);
if (jsonRes['error'] != null) return null;
return jsonRes['response'];
}