takeSnapshot method
Returns the image bytes of the map.
Returns null if a snapshot cannot be created.
Implementation
@override
Future<Uint8List?> takeSnapshot({
required int mapId,
}) {
return channel(mapId).invokeMethod<Uint8List>('map#takeSnapshot');
}