setStringSecurity static method

Future<void> setStringSecurity(
  1. String key,
  2. String data
)

Implementation

static Future<void> setStringSecurity(String key, String data) async {
  await prefs?.setString(
    key,
    encrypter.encrypt(data, iv: iv).base64,
  );
}