getDocumentByHash method
Get Document By Hash.
ID: b1f2061f
.
Implementation
Future<Result<DocumentBase>> getDocumentByHash({
required Uint8List sha256,
required int size,
required String mimeType,
}) async {
// Preparing the request.
final request = MessagesGetDocumentByHash(
sha256: sha256,
size: size,
mimeType: mimeType,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<DocumentBase>();
}