captureImage method
Make a screen region capture of the current map in JPEG format.
No cursor or on-screen information is included. On Android it includes the cursor and any on-screen information.
Returns
- An image of the map shown on the screen.
Throws
- An exception if it fails.
Implementation
Future<Uint8List?> captureImage() async {
if (GemKitPlatform.instance.androidVersion > -1) {
return _captureAsImageAsync();
} else {
return _captureAsImage();
}
}