initFromSodiumJS static method
Creates a Sodium instance for the loaded libsodium as LibSodiumJS
.
The sodiumJsObject
parameter must be a loaded sodium.js
-
depending on your platform. Please refer to the README for more details
on loading the library.
Implementation
static Future<Sodium> initFromSodiumJS(LibSodiumJS libsodium) =>
Future.value(SodiumJS(libsodium));