get method

Future get(
  1. dynamic url, {
  2. dynamic data,
})

HTTP GET request using a url

Implementation

Future<dynamic> get(url, {dynamic data}) async {
  try {
    Response response = await _dio.get(url, data: data);
    return response.data;
  } catch (error, stacktrace) {
    _printLog("$error stackTrace: $stacktrace");
    return null;
  }
}