patchSync method

Future<T> patchSync({
  1. required TGPatchRequest request,
})

Implementation

Future<T> patchSync({required TGPatchRequest request}) async {
  try {
    http.Response httpRes = await _patchCall(request);
    return Future.value(_prepareResponse(httpRes));
  } catch (error) {
    T t = _populateExceptionResponse(error);
    return Future.value(t);
  }
}