Document class Null safety

The rich text document

Constructors

Document()
Document.fromDelta(Delta delta)
Document.fromJson(List data)

Properties

changes Stream<Tuple3<Delta, Delta, ChangeSource>>
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
hasRedo bool
read-only
hasUndo bool
read-only
length int
read-only
root Root
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

close() → void
collectAllStyles(int index, int len) List<Style>
Returns all styles for any character within the specified text range.
collectStyle(int index, int len) Style
Only attributes applied to all characters within this range are included in the result.
compose(Delta delta, ChangeSource changeSource) → void
delete(int index, int len) Delta
format(int index, int len, Attribute? attribute) Delta
insert(int index, Object? data, {int replaceLength = 0}) Delta
isEmpty() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
queryChild(int offset) ChildQuery
redo() Tuple2
replace(int index, int len, Object? data) Delta
setCustomRules(List<Rule> customRules) → void
toDelta() Delta
toPlainText() String
toString() String
A string representation of this object. [...]
inherited
undo() Tuple2

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited