getState method
Implementation
Uint8List getState({Uint8List? vector}) {
final runtime = DocumentRuntime.instance;
if (runtime == null) {
throw StateError('DocumentRuntime is not initialized');
}
final stateBase64 = runtime.getState(documentId: id, vectorBase64: vector == null ? null : base64Encode(vector));
return Uint8List.fromList(base64Decode(stateBase64));
}