getStringSelection method

String getStringSelection()

Returns current selection

Implementation

String getStringSelection( ) {
  int from = _textEditingController.selection.start;
  int to = _textEditingController.selection.end;
  return _textEditingController.text.substring( from, to );
}