In Flutter How to get image path after selecting images using Multi Image Picker? In Flutter How to get image path after selecting images using Multi Image Picker? dart dart

In Flutter How to get image path after selecting images using Multi Image Picker?


Padding(            padding: const EdgeInsets.all(18.0),            child: InkWell(              child: Text(                'POST',                style: TextStyle(fontSize: 18.0),              ),              onTap: () async { List<MultipartFile> multipart = List<MultipartFile>();                for (int i = 0; i < images.length; i++) {                  var path = await FlutterAbsolutePath.getAbsolutePath(images[i].identifier);                }                 },            ),          )


I'm Using below Code to select multiple images by using file_picker: ^2.0.7 Library.Long press to select multiple image. Once Image Selected you can use f arr to display the images.

List<File> f = List(); RaisedButton(            child: Text("Pick Image"),            onPressed: () async {              FilePickerResult result = await FilePicker.platform.pickFiles(                allowMultiple: true,                type: FileType.custom,                allowedExtensions: ['jpg', 'png', 'jpeg'],              );              if (result != null) {                f = result.paths.map((path) => File(path)).toList();                setState(() {});                print(f);              }            },          ),