retain method
Format length
characters of this node starting from index
with
specified style style
.
Implementation
@override
void retain(int index, int? length, NotusStyle? attributes) {
assert(isNotEmpty);
final res = lookup(index);
res.node!.retain(res.offset, length, attributes);
}