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. [...]
read-only, inherited
insertRules List<InsertRule>
List of insert rules in this registry.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed. [...]
inherited
toString() String
Returns 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.
const NotusHeuristics(formatRules: const [const FormatEmbedsRule(), const FormatLinkAtCaretPositionRule(), const ResolveLineFormatRule(), const ResolveInlineFormatRule()], insertRules: const [const Pr…