checkAccessToken static method
Implementation
static Future<bool>checkAccessToken({required String token}) async {
final url = Uri.parse("${ApiEndPoint.validateToken_URL}?accesstoken=$token");
var response = await http.get(url);
if (response.statusCode == 200) {
Map result = jsonDecode(response.body);
return result['result'];
}
return false;
}