DialogueDismissRules class

Keyword rules used to classify candidate overlay elements by their text content. A candidate overlay is dismissed ONLY when its (normalized) text matches at least one pattern of an enabled preset; non-matching sticky / fixed elements (price banners, nav bars, chat widgets) are never touched.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

classify(String text, Set<DialogueDismissPreset> presets) → DialogueDismissPreset?
Classifies text against the enabled presets, returning the first matching concrete preset, or null when nothing matches (the caller must then leave the element alone).
expandPresets(Set<DialogueDismissPreset> presets) → Set<DialogueDismissPreset>
Expands presets, replacing all with the four concrete presets.
matchesPreset(String text, DialogueDismissPreset preset) → bool
Whether text matches the keyword patterns of preset. all matches any concrete preset.
normalizeText(String text) → String
Turkish-aware lowercase + whitespace collapse. İ → i, I → ı before lowercasing so keyword matching is stable across locales.

Constants

concretePresets → const List<DialogueDismissPreset>
The concrete (non-all) presets, in classification priority order.
keywordPatterns → const Map<DialogueDismissPreset, List<String>>
Keyword patterns per concrete preset. Patterns are JS- AND Dart-compatible regular expressions, matched against normalizeText output (Turkish-aware lowercase, collapsed whitespace).