SodiumInit class abstract

Static class to obtain a Sodium instance.

Important: This API is is different depending on whether it is used from the VM or in transpiled JavaScript Code. See the specific implementations for more details.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

init(DynamicLibrary libsodium) Future<Sodium>
Creates a Sodium instance for the loaded libsodium.
init2(DynamicLibraryFactory getLibsodium) Future<Sodium>
Creates a Sodium instance for the loaded libsodium returned by the callback.
initFromSodiumFFI(LibSodiumFFI sodium) Future<Sodium>
Creates a Sodium instance for the loaded libsodium as LibSodiumFFI.
initFromSodiumFFI2(LibSodiumFFIFactory getSodium) Future<Sodium>
Creates a Sodium instance for the loaded libsodium returned by the callback as LibSodiumFFI.