read method
Reads value from storage for the given key
Implementation
@override
dynamic read(String key) {
try {
return box.get(key);
} catch (error, stackTrace) {
throw StorageException('Failed to read key: $key', error, stackTrace);
}
}