CharacterBoundary class
A TextBoundary subclass for retrieving the range of the grapheme the given
position
is in.
The class is implemented using the characters package.
- Inheritance
-
- Object
- TextBoundary
- CharacterBoundary
Constructors
- CharacterBoundary(String _text)
-
Creates a CharacterBoundary 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 offset of the closest text boundary before or at the given
position
, or null if no boundaries can be found.override -
getTextBoundaryAt(
int position) → TextRange -
Returns the text boundary range that encloses the input position.
override
-
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 afterposition
.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