setSelection method

void setSelection(
  1. TextSelection selection
)

Implementation

void setSelection(TextSelection selection) {
  _rope.setSelection(
    baseOffset: BigInt.from(selection.baseOffset),
    extentOffset: BigInt.from(selection.extentOffset),
  );
}