encodeSnapshotV1 method
Implementation
Uint8List encodeSnapshotV1({
required YSnapshot snapshot,
}) {
final results = _encodeSnapshotV1([snapshot.toWasm()]);
final result = results[0];
return (result is Uint8List
? result
: Uint8List.fromList((result! as List).cast()));
}