setEnableABTest method

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

EnableABTest

Whether this search should participate in running AB tests.

Usage notes:

  • By default, a search participates in currently active AB tests. You can prevent this by setting the enableABTest parameter to false. You may want to do this for searches performed in closed environments (like administration panels), or for searches that must target specific index variants during testing or development.

Source: Learn more

Implementation

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