apiCall method

Future<Response> apiCall(
  1. NetworkState state
)
inherited

Implementation

Future<Response> apiCall(NetworkState state) async {
  Uri finalEndpoint = endpoint(state.https, getFinalEndpoint(url, state));
  print("PUT $finalEndpoint");
  // print(body);
  return await put(
    finalEndpoint,
    body: jsonEncode(body),
    headers: headers(state),
    encoding: Encoding.getByName("application/json"),
  );
}