end method
Position
end(
- Node node
inherited
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,
);