openDocument static method
Opens a document in the viewer with configurations.
Uses the path specified by document
. Takes a password
for
encrypted documents, and config
for viewer customization.
Implementation
static Future<void> openDocument(String document,
{String? password, Config? config}) {
return _channel.invokeMethod(Functions.openDocument, <String, dynamic>{
Parameters.document: document,
Parameters.password: password,
Parameters.config: jsonEncode(config)
});
}