init method

Future<void> init({
  1. bool allowEncryptAndDecrypt = true,
})

Initializes the shared preferences instance.

The allowEncryptAndDecrypt parameter indicates whether encryption and decryption should be allowed with shared preferences. By default, encryption and decryption are enabled.

Implementation

Future<void> init({bool allowEncryptAndDecrypt = true}) async {
  _preferences ??= await SharedPreferences.getInstance();
  if (allowEncryptAndDecrypt) {
    // _cryptoModule = CryptoModule();
    // _cryptoModule!.init();
  }
}