setEnableRules method

AlgoliaQuery setEnableRules({
  1. bool enabled = false,
})

EnableRules

Whether Rules should be globally enabled.

This is a global switch that affects all Rules.

Usage notes:

  • When true, Rules processing is enabled: Rules may match the query.
  • When false, Rules processing is disabled: no Rule will match the query.

Source: Learn more

Implementation

AlgoliaQuery setEnableRules({bool enabled = false}) {
  assert(!_parameters.containsKey('enableRules'));
  return _copyWithParameters(<String, dynamic>{'enableRules': enabled});
}