snapshot method

  1. @override
Future<Uint8List> snapshot()
override

Captures the current interpreter state as a binary snapshot.

Implementation

@override
Future<Uint8List> snapshot() async {
  final response = await _send<_SnapshotResponse>(
    _SnapshotRequest(_nextId++),
  );

  return response.data;
}