queryMoreConfigs method
Queries more moderation configurations based on the current pagination state.
If there are no more configurations available, it returns an empty list.
Optionally accepts a limit parameter to specify the maximum number of
configurations to return.
Implementation
Future<Result<List<ModerationConfigData>>> queryMoreConfigs({
int? limit,
}) async {
// Build the query with the current pagination state (with next page token)
final next = _stateNotifier.value.pagination?.next;
// Early return if no more configs available
if (next == null) return const Result.success([]);
// Create a new query with the next page token
final nextQuery = query.copyWith(
next: next,
limit: limit ?? query.limit,
);
return _queryConfigs(nextQuery);
}