applyScopes method

QueryBuilderInterface<T> applyScopes(
  1. List<QueryBuilderInterface<T> Function(QueryBuilderInterface<T>)> scopeFunctions
)

Apply multiple scope functions in sequence

Implementation

QueryBuilderInterface<T> applyScopes(
  List<QueryBuilderInterface<T> Function(QueryBuilderInterface<T>)>
      scopeFunctions,
) {
  var currentQuery = query;
  for (final scopeFunction in scopeFunctions) {
    currentQuery = scopeFunction(currentQuery);
  }
  return currentQuery;
}