BlockedUserListRequest constructor

BlockedUserListRequest({
  1. List<String> userIds = const [],
  2. String? token,
  3. int limit = 30,
  4. String? userId,
})

Implementation

BlockedUserListRequest({
  List<String> userIds = const [],
  String? token,
  int limit = 30,
  String? userId,
}) : super() {
  url = 'users/${userId ?? state.userId}/block';
  queryParams = {
    'limit': limit,
    if (token != null) 'token': token,
    if (userIds.isNotEmpty) 'user_ids': userIds,
  };
}