end method

Position end(
  1. Node node
)

the end position of the block component.

For the text block component, the end position is always the length of the text.

Implementation

Position end(Node node) => Position(
      path: node.path,
      offset: node.delta?.length ?? 0,
    );