collapse method

void collapse(
  1. Node? node, [
  2. int offset
])

The Selection.collapse() method collapses the current selection to a single point. The document is not modified. If the content is focused and editable, the caret will blink there.

Note: This method is an alias for the Selection.setPosition method.

Implementation

external void collapse(
  Node? node, [
  int offset,
]);