updateLocation method

Future<void> updateLocation(
  1. double? latitude,
  2. double? longtitude
)

Implementation

Future<void> updateLocation(double? latitude, double? longtitude) async {
  //
  var body =
      json.encode({"lat": latitude, "lng": longtitude, "client": client});
  // final initUrl = '$baseUrl/api/friend/nearby/update';
  final initUrl = BytedeskUtils.getHostUri('/api/friend/nearby/update');
  await httpClient.post(initUrl, headers: getHeaders(), body: body);
}