getBlockedUsers function

Future<List<BlockedUser>> getBlockedUsers()

Lấy danh sách user đã bị chặn

Implementation

Future<List<BlockedUser>> getBlockedUsers() async {
  final response = await getFromTable('blocked_users')
      .select()
      .eq('blocked_by', loggedUsername);

  return response.map((json) => BlockedUser.fromJson(json)).toList();
}