read method

Future<String> read (
  1. {@required String key,
  2. IOSOptions iOptions,
  3. AndroidOptions aOptions}

Decrypts and returns the value for the given key or null if key is not in the storage.

key shoudn't be null. iOptions optional iOS options aOptions optional Android options Can throw a PlatformException.


Future<String> read({@required String key, IOSOptions iOptions, AndroidOptions aOptions}) async {
  final String value = await _channel.invokeMethod('read', <String, dynamic>{'key': key, 'options': _selectOptions(iOptions, aOptions)});
  return value;