getAssetsAll method
Implementation
Future<List<TokenBalanceData>> getAssetsAll() async {
final List? res = await (service.getAssetsAll());
if (res == null) {
return [];
}
return res
.map((e) => TokenBalanceData(
id: e['id'].toString(),
name: e['symbol'],
fullName: e['name'],
symbol: e['symbol'],
decimals: int.parse(e['decimals']),
))
.toList();
}