ExtendedTextLibraryUtils class

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

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

Static Methods

convertKeyboardMoveSelection(InlineSpan text, TextSelection selection) TextSelection
convertKeyboardMoveTextPostion(InlineSpan text, TextPosition? textPosition) TextPosition?
move by keyboard left -1 and right +1 make sure keyboard left/right support for SpecialInlineSpan
convertTextInputPostionToTextPainterPostion(InlineSpan text, TextPosition textPosition) TextPosition
convertTextInputSelectionToTextPainterSelection(InlineSpan text, TextSelection selection) TextSelection
convertTextPainterPostionToTextInputPostion(InlineSpan text, TextPosition? textPosition, {bool? end}) TextPosition?
convertTextPainterSelectionToTextInputSelection(InlineSpan text, TextSelection selection, {bool selectWord = false}) TextSelection
correctCaretOffset(TextEditingValue value, InlineSpan textSpan, TextInputConnection? textInputConnection, {TextEditingValue? oldValue}) TextEditingValue
correct caret Offset make sure caret is not in text when caretIn is false
getCaretOffset(TextPosition textPosition, TextPainter textPainter, bool hasPlaceholderSpan, {ValueChanged<double>? caretHeightCallBack, Offset? effectiveOffset, Rect caretPrototype = Rect.zero, BoxHeightStyle boxHeightStyle = ui.BoxHeightStyle.tight, BoxWidthStyle boxWidthStyle = ui.BoxWidthStyle.tight}) Offset
getInlineOffset(InlineSpan inlineSpan) int
Walks this text span and its descendants in pre-order and calls visitor for each span that has text.
handleSpecialTextSpanDelete(TextEditingValue value, TextEditingValue? oldValue, InlineSpan oldTextSpan, TextInputConnection? textInputConnection) TextEditingValue
hasSpecialText(InlineSpan textSpan) bool
hasT<T>(InlineSpan? textSpan) bool
hitTestChild(BoxHitTestResult result, RenderBox child, Offset effectiveOffset, {required Offset position}) bool
joinChar(InlineSpan value, Accumulator offset, String char) InlineSpan
join char into text
makeSureCaretNotInSpecialText(InlineSpan text, TextPosition textPosition) TextPosition
textSpanToActualText(InlineSpan textSpan) String

Constants

zeroWidthSpace → const String