takeSnapshot method

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

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