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

Constants

END_TO_END int

2
END_TO_START int

3
NODE_AFTER int

1
NODE_BEFORE int

0
NODE_BEFORE_AND_AFTER int

2
NODE_INSIDE int

3
START_TO_END int

1
START_TO_START int

0

Static Properties

supportsCreateContextualFragment bool

Checks if createContextualFragment is supported.

read-only

Static Methods

internalCreateRange() Range

Constructors

Range()

factory
Range.fromPoint(Point point)

factory
Range.internal_()

Properties

read / write, inherited
collapsed bool

read-only
commonAncestorContainer Node

read-only
endContainer Node

read-only
endOffset int

read-only
hashCode int

read-only
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited
startContainer Node

read-only
startOffset int

read-only

Operators

operator ==(other) bool

The equality operator.

Methods

cloneContents() DocumentFragment

cloneRange() Range

collapse([bool toStart]) → void

compareBoundaryPoints(int how, Range sourceRange) int

comparePoint(Node refNode, int offset) int

createContextualFragment(String html) DocumentFragment

deleteContents() → void

detach() → void

expand(String unit) → void

extractContents() DocumentFragment

getBoundingClientRect() Rectangle

getClientRects() List<Rectangle>

insertNode(Node newNode) → void

isPointInRange(Node refNode, int offset) bool

noSuchMethod(Invocation invocation) → dynamic

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

inherited
selectNode(Node refNode) → void

selectNodeContents(Node refNode) → void

setEnd(Node refNode, int offset) → void

setEndAfter(Node refNode) → void

setEndBefore(Node refNode) → void

setStart(Node refNode, int offset) → void

setStartAfter(Node refNode) → void

setStartBefore(Node refNode) → void

surroundContents(Node newParent) → void

toString() String

Returns a string representation of this object.

inherited