loadSodium abstract method

Future<Sodium> loadSodium()

Load an instance of Sodium for the current platform.

This is the primary method that all implementers of the platform interface must implement. Inside this method, they should load a native instance of Sodium and return that loaded instance.

Check out the sodium package documentation for details on how to obtain a native instance on each platform.

Implementation

Future<Sodium> loadSodium();