retain method

  1. @override
void retain(
  1. int index,
  2. int? length,
  3. NotusStyle? attributes
)
override

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);
}