NotusHeuristics class

Registry for insert, format and delete heuristic rules used by NotusDocument documents.

Constructors

NotusHeuristics({List<FormatRule>? formatRules, List<InsertRule>? insertRules, List<DeleteRule>? deleteRules})
const

Properties

deleteRules List<DeleteRule>?
List of delete rules in this registry.
final
formatRules List<FormatRule>?
List of format rules in this registry.
final
hashCode int
The hash code for this object.
no setterinherited
insertRules List<InsertRule>?
List of insert rules in this registry.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyDeleteRules(NotusDocument document, int index, int length) Delta
Applies heuristic rules to specified delete operation based on current state of Notus document.
applyFormatRules(NotusDocument document, int index, int length, NotusAttribute value) Delta
Applies heuristic rules to specified format operation based on current state of Notus document.
applyInsertRules(NotusDocument document, int index, String insert) Delta
Applies heuristic rules to specified insert operation based on current state of Notus document.
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

Constants

fallback → const NotusHeuristics
Default set of heuristic rules.