ProxyTextComposable mixin
TextComposable that wraps, and defers to, a child TextComposable.
ProxyTextComposable let's you apply decorations to a childTextComposable when those decorations don't alter the layout of the child's text.
Implementers need to provide childTextComposable.
- Implemented types
Properties
- childTextComposable → TextComposable
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAllText(
) → String -
Returns all text in this text composable.
override
-
getContiguousTextAt(
TextNodePosition textPosition) → String -
Returns all text surrounding
textPosition
that isn't broken by newlines.override -
getContiguousTextSelectionAt(
TextNodePosition textNodePosition) → TextNodeSelection -
Returns a TextNodeSelection that encompasses all text surrounding
textPosition
that isn't broken by newlines.override -
getPositionAtEndOfLine(
TextNodePosition textNodePosition) → TextNodePosition -
Returns the TextNodePosition that corresponds to the last character
in the line of text that contains the given
textNodePosition
.override -
getPositionAtStartOfLine(
TextNodePosition textNodePosition) → TextNodePosition -
Returns the node position that corresponds to the first character
in the line of text that contains the given
textNodePosition
.override -
getPositionOneLineDown(
TextNodePosition textNodePosition) → TextNodePosition? -
Returns the TextNodePosition that corresponds to a text location
that is one line below the given
textNodePosition
, ornull
if there is no position one line down.override -
getPositionOneLineUp(
TextNodePosition textNodePosition) → TextNodePosition? -
Returns the TextNodePosition that corresponds to a text location
that is one line above the given
textNodePosition
, ornull
if there is no position one line up.override -
getWordSelectionAt(
TextNodePosition textNodePosition) → TextNodeSelection -
Returns a TextNodeSelection that encompasses the entire word
found at the given
textNodePosition
.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