Future<String> getData() async {
if (!email.contains("@")) {
print("invalid email");
}
print("Your email is " + email + " and your password is " + password);
http.Response response = await http.post(
Uri.encodeFull("https://api.wkend-eve.com/auth/login"),
headers: {"Accept": "application/json"},
body: {"email": email, "password": password});
Map<String, dynamic> x = json.decode(response.body);
print(x["access_token"]);
print(x["expires_in"]);
print(response.statusCode);
String acess_token = x["access_token"];
// Я хотел бы вызвать переменную: String acess_token = x ["access_token"];
из другого класса