VkLib constructor
VkLib({})
Creates a instance of VkLib
Implementation
VkLib({
required String token,
String v = '5.130',
String lang = LanguageType.RU,
bool test_mode = false,
}) {
String _access_token;
if (token.startsWith('%')) {
load();
_access_token = env[token.substring(1)] ?? 'unknown';
} else {
_access_token = token;
}
api = API(_access_token, v: v, lang: lang, test_mode: test_mode);
}