read method

Future read(
  1. String key
)

Read a key value from NyStorage

Implementation

Future read(String key) async {
  dynamic data = await NyStorage.read(key);
  if (data == null) {
    return null;
  }
  this.fromStorage(jsonDecode(data));
  return this;
}