ParagraphBoundary class
A text boundary that uses paragraphs as logical boundaries.
A paragraph is defined as the range between line terminators. If no line terminators exist then the paragraph boundary is the entire document.
- Inheritance
-
- Object
- TextBoundary
- ParagraphBoundary
Constructors
- ParagraphBoundary.new(String _text)
-
Creates a ParagraphBoundary with the text.
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 int representing the start position of the paragraph that
bounds the given
position. The returned int is the position of the code unit that follows the line terminator that encloses the desired paragraph.override -
getTextBoundaryAt(
int position) → TextRange -
Returns the text boundary range that encloses the input position.
inherited
-
getTrailingTextBoundaryAt(
int position) → int? -
Returns the int representing the end position of the paragraph that
bounds the given
position. The returned int is the position of the code unit representing the trailing line terminator that encloses the desired paragraph.override -
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