snapshotCommandLog method

Future<List<Map<String, dynamic>>> snapshotCommandLog(
  1. SnapshotId snapshotId
)

Replays the layer snapshot and returns canvas log. snapshotId The id of the layer snapshot. Returns: The array of canvas function calls.

Implementation

Future<List<Map<String, dynamic>>> snapshotCommandLog(
    SnapshotId snapshotId) async {
  var result = await _client.send('LayerTree.snapshotCommandLog', {
    'snapshotId': snapshotId,
  });
  return (result['commandLog'] as List)
      .map((e) => e as Map<String, dynamic>)
      .toList();
}