storageSave function
Save data to the storage class.
Implementation
Future storageSave(String key, object, {bool inBackpack = false}) async {
if (_Json.tryEncode(object) != null) {
return await NyStorage.saveJson(key, object, inBackpack: inBackpack);
}
return await NyStorage.save(key, object, inBackpack: inBackpack);
}