getBlockUser static method

Future<List<String>?> getBlockUser()

Implementation

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