selection property
Get the current editor code selections.
Implementation
@override
CodeLineSelection get selection => _delegate.selection;
Set the current editor code selections.
Setting this will notify all the listeners of this CodeLineEditingController that they need to update (it calls notifyListeners). For this reason, this value should only be set between frames, e.g. in response to user actions, not during the build, layout, or paint phases.
This property can be set from a listener added to this
CodeLineEditingController; however, one should not also set codeLines
in a separate statement. To change both the codeLines and the selection
change the controller's value
.
If the new selection is of non-zero length, or is outside the composing range, the composing range is cleared.
Implementation
@override
set selection(CodeLineSelection value) {
_delegate.selection = value;
}