getCurrentTokenValue method

Future<double> getCurrentTokenValue(
  1. dynamic tokenType,
  2. dynamic currency
)

Implementation

Future<double> getCurrentTokenValue(tokenType, currency) async {
  NetworkResponse response =
      await _api.getCurrentTokenValue(tokenType, currency: currency);
  return response.data ?? 0.0;
}