doGet method

void doGet(
  1. String? apiName,
  2. OnInterfaceCallbackListener listener,
  3. String? apiNamePageRef
)

Implementation

void doGet(String? apiName, OnInterfaceCallbackListener listener, String? apiNamePageRef) async {
  try {
    final response = await dio.get(apiName ?? '');
    _handleResponse(response, listener, apiNamePageRef);
  } on DioException catch (e) {
    _handleDioError(e, listener, apiNamePageRef);
  } catch (e) {
    listener.onFetchComplete(700, 'ERROR', apiNamePageRef);
  }
}