RuleEngine constructor

RuleEngine({
  1. InteractionTracker? tracker,
  2. LayoutStore? layoutStore,
  3. List<LayoutRule>? rules,
  4. int minInteractions = 5,
})

Create a new rule engine

Implementation

RuleEngine({
  InteractionTracker? tracker,
  LayoutStore? layoutStore,
  List<LayoutRule>? rules,
  int minInteractions = 5,
})  : _tracker = tracker ?? InteractionTracker.instance,
      _layoutStore = layoutStore ?? LayoutStore.instance,
      _rules = rules ?? [MostUsedFirstRule()],
      _minInteractions = minInteractions;