makeGet<T> method

Future<T?> makeGet<T>(
  1. RequestModel? config
)

Cria uma requisição HTTP do tipo GET com a config informada.

Implementation

Future<T?> makeGet<T>(RequestModel? config) async {
  config = config ?? RequestModel();
  return _makeRequest<T, void>(HttpMethod.get, _getUrl(config), config.headers,
      data: config.data, httpParams: config.params, contentType: config.contentType, responseType: config.responseType);
}