Inheritance
Annotations
  • @DocsEditable()
  • @DomName('Selection')

Static Properties

instanceRuntimeType Type

@Deprecated("Internal Use Only"), read-only

Constructors

Selection.internal_()

Properties

anchorNode Node

@DocsEditable(), @DomName('Selection.anchorNode'), read-only
anchorOffset int

@DocsEditable(), @DomName('Selection.anchorOffset'), read-only
baseNode Node

@DocsEditable(), @DomName('Selection.baseNode'), @Experimental(), read-only
baseOffset int

@DocsEditable(), @DomName('Selection.baseOffset'), @Experimental(), read-only
extentNode Node

@DocsEditable(), @DomName('Selection.extentNode'), @Experimental(), read-only
extentOffset int

@DocsEditable(), @DomName('Selection.extentOffset'), @Experimental(), read-only
focusNode Node

@DocsEditable(), @DomName('Selection.focusNode'), read-only
focusOffset int

@DocsEditable(), @DomName('Selection.focusOffset'), read-only
isCollapsed bool

@DocsEditable(), @DomName('Selection.isCollapsed'), read-only
rangeCount int

@DocsEditable(), @DomName('Selection.rangeCount'), read-only
type String

@DocsEditable(), @DomName('Selection.type'), @Experimental(), read-only
hashCode int

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

addRange(Range range) → void

@DocsEditable(), @DomName('Selection.addRange')
collapse(Node node, [ int offset ]) → void

collapseToEnd() → void

@DocsEditable(), @DomName('Selection.collapseToEnd')
collapseToStart() → void

@DocsEditable(), @DomName('Selection.collapseToStart')
containsNode(Node node, bool allowPartialContainment) bool

@DocsEditable(), @DomName('Selection.containsNode'), @Experimental()
deleteFromDocument() → void

@DocsEditable(), @DomName('Selection.deleteFromDocument')
empty() → void

@DocsEditable(), @DomName('Selection.empty'), @Experimental()
extend(Node node, [ int offset ]) → void

getRangeAt(int index) Range

@DocsEditable(), @DomName('Selection.getRangeAt')
modify(String alter, String direction, String granularity) → void

@DocsEditable(), @DomName('Selection.modify'), @Experimental()
removeAllRanges() → void

@DocsEditable(), @DomName('Selection.removeAllRanges')
selectAllChildren(Node node) → void

@DocsEditable(), @DomName('Selection.selectAllChildren')
setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) → void

@DocsEditable(), @DomName('Selection.setBaseAndExtent'), @Experimental()
setPosition(Node node, [ int offset ]) → void

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() String

Returns the result of the JavaScript objects toString method.

inherited