selection property

TextSelection get selection

Implementation

TextSelection get selection {
  final currentSelection = _rope.selection();
  return TextSelection(
    baseOffset: currentSelection.baseOffset.toInt(),
    extentOffset: currentSelection.extentOffset.toInt(),
  );
}