I am trying to just get the "result" part of the API call response, but the entire call is being printed anyway.
final balance = await etherscan.tokenBalance(address: myAddress, contractAddress: getAddresses());
print(balance.result);
This is the response:
I/flutter ( 6425): api_url: https://api-rinkeby.etherscan.io
I/flutter ( 6425): query: {
I/flutter ( 6425): "module": "account",
I/flutter ( 6425): "action": "tokenbalance",
I/flutter ( 6425): "apiKey": "*******",
I/flutter ( 6425): "tag": "latest",
I/flutter ( 6425): "contractaddress": "0x01BE23585060835E02B77ef475b0Cc51aA1e0709",
I/flutter ( 6425): "address": "********"
I/flutter ( 6425): }
I/flutter ( 6425): response: {
I/flutter ( 6425): "status": "1",
I/flutter ( 6425): "message": "OK",
I/flutter ( 6425): "result": "70000000000000000000"
I/flutter ( 6425): }
I/flutter ( 6425): 70000000000000000000
Thanks a lot in advance!