getBlockContentPost static method

Future<List<String>?> getBlockContentPost()

Implementation

static Future<List<String>?> getBlockContentPost() async {
  SharedPreferences pref = await SharedPreferences.getInstance();
  List<String> data = [];
  String? databefore = pref.getString(clubContentPostBlock);
  if (databefore != null) {
    List datat = jsonDecode(databefore);
    datat.forEach((element) {
      data.add(element);
    });
  }
  return data;
}