setString abstract method

Future<void> setString(
  1. String key,
  2. String? value, {
  3. Duration? ttl,
})

Saves the String value in memory with the assigned key. Use ttl to determine how long should the value remain in memory. If ttl is null, the value will permanently be stored in the device memory with the assigned key.

Implementation

Future<void> setString(
  String key,
  String? value, {
  Duration? ttl,
});