TextBoundary class abstract

An interface for retrieving the logical text boundary (as opposed to the visual boundary) at a given code unit offset in a document.

Either the getTextBoundaryAt method, or both the getLeadingTextBoundaryAt method and the getTrailingTextBoundaryAt method must be implemented.

Implementers

Constructors

TextBoundary()
A constant constructor to enable subclass override.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getLeadingTextBoundaryAt(int position) → int?
Returns the offset of the closest text boundary before or at the given position, or null if no boundaries can be found.
getTextBoundaryAt(int position) → TextRange
Returns the text boundary range that encloses the input position.
getTrailingTextBoundaryAt(int position) → int?
Returns the offset of the closest text boundary after the given position, or null if there is no boundary can be found after position.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited