SpecialTextSpan class Null safety

create by zmtzawqlp on 2019/4/30

Inheritance
Mixed in types
Implementers

Constructors

SpecialTextSpan({TextStyle? style, required String text, String? actualText, int start = 0, bool deleteAll = true, GestureRecognizer? recognizer, List<InlineSpan>? children, String? semanticsLabel})

Properties

actualText String
actual text
final
baseHashCode int
read-only, inherited
children List<InlineSpan>?
Additional spans to include as children. [...]
final, inherited
deleteAll bool
if it's true delete all actual text when it try to delete a SpecialTextSpan(like a image span) caret can't move into special text of SpecialTextSpan(like a image span or @xxxx) extended_text and extended_text_field
final
end int
the end index in all text
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, override
recognizer GestureRecognizer?
A gesture recognizer that will receive events that hit this span. [...]
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
semanticsLabel String?
An alternative semantics label for this TextSpan. [...]
final, inherited
start int
the start index in all text
read-only, inherited
style TextStyle?
The TextStyle to apply to this span. [...]
final, inherited
text String?
The text contained in this span. [...]
final, inherited
textRange TextRange
final

Methods

baseCompareTo(SpecialInlineSpanBase other) RenderComparison
inherited
build(ParagraphBuilder builder, {double textScaleFactor = 1.0, List<PlaceholderDimensions>? dimensions}) → void
Apply the style, text, and children of this object to the given ParagraphBuilder, from which a Paragraph can be obtained. Paragraph objects can be drawn on Canvas objects. [...]
inherited
codeUnitAt(int index) int?
Returns the UTF-16 code unit at the given index in the flattened string. [...]
inherited
codeUnitAtVisitor(int index, Accumulator offset) int?
Performs the check at each InlineSpan for if the index falls within the range of the span and returns the corresponding code unit. Returns null otherwise. [...]
inherited
compareTo(InlineSpan other) RenderComparison
Describe the difference between this span and another, in terms of how much damage it will make to the rendering. The comparison is deep. [...]
override
computeSemanticsInformation(List<InlineSpanSemanticsInformation> collector) → void
Walks the InlineSpan tree and accumulates a list of InlineSpanSemanticsInformation objects. [...]
inherited
computeToPlainText(StringBuffer buffer, {bool includeSemanticsLabels = true, bool includePlaceholders = true}) → void
Walks the InlineSpan tree and writes the plain text representation to buffer. [...]
inherited
debugAssertIsValid() bool
In checked mode, throws an exception if the object is not in a valid configuration. Otherwise, returns true. [...]
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
describeSemantics(Accumulator offset, List<int> semanticsOffsets, List semanticsElements) → void
Populates the semanticsOffsets and semanticsElements with the appropriate data to be able to construct a SemanticsNode. [...]
inherited
equal(SpecialInlineSpanBase other) bool
inherited
getSemanticsInformation() List<InlineSpanSemanticsInformation>
Flattens the InlineSpan tree to a list of InlineSpanSemanticsInformation objects. [...]
inherited
getSpanForPosition(TextPosition position) InlineSpan?
Returns the InlineSpan that contains the given position in the text.
inherited
getSpanForPositionVisitor(TextPosition position, Accumulator offset) InlineSpan?
Returns the text span that contains the given position in the text.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toPlainText({bool includeSemanticsLabels = true, bool includePlaceholders = true}) String
Flattens the InlineSpan tree into a single string. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode. [...]
inherited
visitChildren(InlineSpanVisitor visitor) bool
Walks this TextSpan and its descendants in pre-order and calls visitor for each span that has text. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override