collapseSelection property Null safety

bool collapseSelection

Whether this Intent should make the selection collapsed (so it becomes a caret), after the movement.

When collapseSelection is false, the input field typically only moves the current TextSelection.extent to the new location, while maintains the current TextSelection.base location.

When collapseSelection is true, the input field typically should move both the TextSelection.base and the TextSelection.extent to the new location.


final bool collapseSelection;