getConvertedAmount static method

Future<Response?> getConvertedAmount(
  1. dynamic url
)

Implementation

static Future<Response?> getConvertedAmount(url) async {
  try {
//cal api
    final response = await get(Uri.parse(url));
// get response
    return response;
  } catch (e) {
// catch er
    if (kDebugMode) {
      print("fetch get err $e");
    }
  }
  return null;
}