I passed an image source Url from List to a function one at a time. One method has await keyword and after await Function my List index is jumbled up. The value of variable j is serially 0,1,2 and so on in the saveNetworkFileToLocalDirectory function but after I parse the Image Url, the value of j is jumbled up and not in serial order. I have the image below of my log(j) below. Could it be due to use of await?? Anyone can answer this?

Future<void> saveNetworkFileToLocalDirectory(String fileSrcUrl, int j) async {
    log('index saveFileFunction ' + j.toString());
    var response = await http.get(Uri.parse(fileSrcUrl));
    log(j.toString() + ' j');
    Directory documentsDirectory = await getApplicationDocumentsDirectory();

    String filePath =
        p.join(documentsDirectory.path, getFileNameFromUrl(fileSrcUrl));
    File file = File(filePath);

    await file.writeAsBytes(response.bodyBytes);

    setState(() {


enter image description here