getBalances method
Implementation
@override
Future<List> getBalances(String token) async {
final String baseUrl = await getBaseUrl;
var url = Uri.parse("$baseUrl/api/v1/balances/current");
var response = await http.get(
url,
headers: {
"Authorization": "Bearer $token",
},
);
var data = jsonDecode(response.body);
//print(response.body);
return data;
}