setBlockContentPost static method
Implementation
static void setBlockContentPost(String contentId) async {
SharedPreferences pref = await SharedPreferences.getInstance();
Preferences.getBlockContentPost().then((value) async {
List<String> data = [];
if (value != null) {
data = value;
}
data.add(contentId);
String encode = jsonEncode(data);
await pref.setString(clubContentPostBlock, encode);
});
}