putValue method

Future<bool> putValue(
  1. String key,
  2. String value
)

Returns true on successfully storing the values into local secondary.

Implementation

Future<bool> putValue(String key, String value) async {
  dynamic isStored;
  var atData = AtData()..data = value;
  isStored = await keyStore!.put(key, atData);
  return isStored != null ? true : false;
}