makeSnapshot method

Future<SnapshotId> makeSnapshot(
  1. LayerId layerId
)

Returns the layer snapshot identifier. layerId The id of the layer. Returns: The id of the layer snapshot.

Implementation

Future<SnapshotId> makeSnapshot(LayerId layerId) async {
  var result = await _client.send('LayerTree.makeSnapshot', {
    'layerId': layerId,
  });
  return SnapshotId.fromJson(result['snapshotId'] as String);
}