Flutter: Googlemap snapshot

Hi all,
is it possible to take a screenshot of the GoogleMap widget, once the map is created?
Here below the code concerning part:

  ...
         child: GoogleMap(
                mapType: MapType.normal,
                onMapCreated: (GoogleMapController controller) {
                  _mapController = controller;
                  _controller.complete(controller);
                }
                myLocationEnabled: true,
                tiltGesturesEnabled: true,
                compassEnabled: true,
                scrollGesturesEnabled: true,
                zoomGesturesEnabled: true,
                initialCameraPosition: CameraPosition(target: LatLng(11.00, 12.00), zoom: 10),
                markers: Mymarkers != null ? Set<Marker>.from(Mymarkers) : null,
                polylines: Set<Polyline>.of(polylines.values),
              )

Thank you all.

Hey men have you tried this plugin? https://pub.dev/packages/screenshot

Thank u Luca, but when I try to store locally the screenshot, to load it later into server , this is the error that comes:

I/flutter ( 6835): FileSystemException: Cannot retrieve length of file, path = ‘…’
(OS Error: No such file or directory, errno = 2)

This is the part of my code, there is a Button, which onPressed:

                      onPressed: () {
                        screenshotController
                            .capture(delay: Duration(milliseconds: 10))
                            .then((File image) async {
                          setState(() {
                            _imageFile = image;
                          });

                          final directory = (await getApplicationDocumentsDirectory ()).path; 

                          String fileName = DateTime.now().toIso8601String();
                          path = '$directory/$fileName.png';
                          print(path);
                          screenshotController.capture(
                              path:path 
                          );

                          FormData formData = FormData.fromMap({
                            "file": await MultipartFile.fromFile(
                              path,
                              filename: fileName,
                            ),
                          });

                          Response response = await Dio().post("<...my php file to load image to the server...", data: formData);                      
                        }).catchError((onError) {
                          print(onError);
                        });

                      },

Thanks.

Sorry man I have no Idea, if you want to share a simplified version of your project for me to test and try to find the error I’ll be happy to help. :wink: