SodiumPlatform class abstract
The abstract platform interface
This interface is implemented by the package for each supported native platform. When using the package, you can get a reference to the current instance via SodiumPlatform.instance.
Note: When implementing your own platform instance, you have to extend this class. Implementing it is not allowed
- Inheritance
-
- Object
- PlatformInterface
- SodiumPlatform
Constructors
- SodiumPlatform.new()
- Default constructor
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updateHint → String
-
A hint for the user if an outdated version of libsodium is detected.
no setter
Methods
-
loadSodium(
) → Future< Sodium> - Load an instance of Sodium for the current platform.
-
loadSodiumSumo(
) → Future< SodiumSumo> - Load an instance of SodiumSumo for the current platform.
-
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 Properties
- instance ↔ SodiumPlatform
-
Returns the currently loaded native instance of this plugin
getter/setter pair