updateStory method

Future<Response> updateStory({
  1. required int? storyId,
  2. required String? attachedUrl,
  3. required String? text,
  4. required String? type,
})

Implementation

Future<http.Response> updateStory({
  required int? storyId,
  required String? attachedUrl,
  required String? text,
  required String? type,
}) {
  return put(
      Uri.parse(
          '$apiURL/story/updateAttachedUrl?id=$storyId&attachedUrl=$attachedUrl&text=$text&type=$type'),
      headers: {
        "token":
            "cnejwi8c9wehnd8fchni2x239jxexnjx2n23i8xn3oifr0cwd32fjnrf453vreve",
        "content-type": 'application/json',
      });
}