getActualSelection method
Implementation
TextSelection? getActualSelection(
{TextRange? newRange, TextSelection? newSelection}) {
TextSelection? value = newSelection ?? selection;
if (newRange != null) {
value =
TextSelection(baseOffset: newRange.start, extentOffset: newRange.end);
}
return hasSpecialInlineSpanBase
? convertTextInputSelectionToTextPainterSelection(text!, value!)
: value;
}