CatchAllDeleteRule class

Fallback delete rule: removes the requested range as-is, except that a deletion reaching the end of the document is shortened by one position so the final newline — the Quill document invariant — survives.

Inheritance

Constructors

CatchAllDeleteRule()
Creates the rule.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type RuleType
Which kind of edit intent this rule participates in.
no setteroverride

Methods

apply(Delta document, int index, {int? length, Object? data, Attribute<Object?>? attribute, required AttributeRegistry registry}) Delta
Produces the change delta for the edit intent, or null when this rule does not apply.
override
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