ExtendSelectionToLineBreakIntent class Null safety

Extends, or moves the current selection from the current TextSelection.extent position to the closest line break in the direction given by forward.

See also:

ExpandSelectionToLineBreakIntent, which is similar but always increases the size of the selection.



ExtendSelectionToLineBreakIntent({required bool forward, required bool collapseSelection, bool collapseAtReversal = false, bool continuesAtWrap = false})
Creates an ExtendSelectionToLineBreakIntent.


collapseAtReversal bool
Whether to collapse the selection when it would otherwise reverse order. [...]
final, inherited
collapseSelection bool
Whether this Intent should make the selection collapsed (so it becomes a caret), after the movement. [...]
final, inherited
continuesAtWrap bool
Whether or not to continue to the next line at a wordwrap. [...]
final, inherited
forward bool
Whether the input field, if applicable, should perform the text editing operation from the current caret location towards the end of the document. [...]
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
@mustCallSuper, @protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]


operator ==(Object other) bool
The equality operator. [...]