Inheritance
Annotations
  • @DomName('Range')
  • @Unstable()

Constants

END_TO_END int

@DocsEditable(), @DomName('Range.END_TO_END')
2
END_TO_START int

@DocsEditable(), @DomName('Range.END_TO_START')
3
START_TO_END int

@DocsEditable(), @DomName('Range.START_TO_END')
1
START_TO_START int

@DocsEditable(), @DomName('Range.START_TO_START')
0

Static Properties

instanceRuntimeType Type

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

Checks if createContextualFragment is supported.

read-only

Constructors

Range()

factory
Range.fromPoint(Point point)

factory
Range.internal_()

Properties

collapsed bool

@DocsEditable(), @DomName('Range.collapsed'), read-only
commonAncestorContainer Node

@DocsEditable(), @DomName('Range.commonAncestorContainer'), read-only
endContainer Node

@DocsEditable(), @DomName('Range.endContainer'), read-only
endOffset int

@DocsEditable(), @DomName('Range.endOffset'), read-only
startContainer Node

@DocsEditable(), @DomName('Range.startContainer'), read-only
startOffset int

@DocsEditable(), @DomName('Range.startOffset'), 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

cloneContents() DocumentFragment

@DocsEditable(), @DomName('Range.cloneContents')
cloneRange() Range

@DocsEditable(), @DomName('Range.cloneRange')
collapse([bool toStart ]) → void

compareBoundaryPoints(int how, Range sourceRange) int

@DocsEditable(), @DomName('Range.compareBoundaryPoints'), @Experimental()
comparePoint(Node node, int offset) int

@DocsEditable(), @DomName('Range.comparePoint')
createContextualFragment(String fragment) DocumentFragment

@DocsEditable(), @DomName('Range.createContextualFragment')
deleteContents() → void

@DocsEditable(), @DomName('Range.deleteContents')
detach() → void

@DocsEditable(), @DomName('Range.detach')
expand(String unit) → void

@DocsEditable(), @DomName('Range.expand'), @Experimental()
extractContents() DocumentFragment

@DocsEditable(), @DomName('Range.extractContents')
getBoundingClientRect() Rectangle

@DocsEditable(), @DomName('Range.getBoundingClientRect')
getClientRects() List<Rectangle>

@DocsEditable(), @DomName('Range.getClientRects')
insertNode(Node node) → void

@DocsEditable(), @DomName('Range.insertNode')
isPointInRange(Node node, int offset) bool

@DocsEditable(), @DomName('Range.isPointInRange')
selectNode(Node node) → void

@DocsEditable(), @DomName('Range.selectNode')
selectNodeContents(Node node) → void

@DocsEditable(), @DomName('Range.selectNodeContents')
setEnd(Node node, int offset) → void

@DocsEditable(), @DomName('Range.setEnd')
setEndAfter(Node node) → void

@DocsEditable(), @DomName('Range.setEndAfter')
setEndBefore(Node node) → void

@DocsEditable(), @DomName('Range.setEndBefore')
setStart(Node node, int offset) → void

@DocsEditable(), @DomName('Range.setStart')
setStartAfter(Node node) → void

@DocsEditable(), @DomName('Range.setStartAfter')
setStartBefore(Node node) → void

@DocsEditable(), @DomName('Range.setStartBefore')
surroundContents(Node newParent) → void

@DocsEditable(), @DomName('Range.surroundContents')
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