takeSnapshot method

  1. @override
Future<Uint8List?> takeSnapshot({
  1. required int mapId,
})

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');
}