RuleEngine constructor
RuleEngine({
- InteractionTracker? tracker,
- LayoutStore? layoutStore,
- List<
LayoutRule> ? rules, - 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;