fetchRequest method

  1. @override
Future fetchRequest({
  1. required String path,
  2. Options? options,
})
override

Implementation

@override
Future fetchRequest({required String path, Options? options}) async {
  dynamic responseJson;
  final dio = Dio(option);
  try {
    var response = await dio.get(path, options: options);
    responseJson = returnResponse(response);
  } on SocketException {
    throw ('NO INTERNET CONNECTION !');
  }
  return responseJson;
}