SuperReaderInspector class

Inspects a given SuperReader in the widget tree.

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

calculateOffsetForCaret(DocumentPosition position, [Finder? finder]) Offset
Returns the (x,y) offset for a caret, if that caret appeared at the given position.
findComponentOffset(String nodeId, Alignment alignment, [Finder? finder]) Offset
Returns the (x,y) offset for the component which renders the node with the given nodeId.
findDocument([Finder? finder]) Document?
Returns the Document within the SuperReader matched by finder, or the singular SuperReader in the widget tree, if finder is null.
findDocumentSelection([Finder? finder]) DocumentSelection?
Returns the current DocumentSelection for the SuperReader matched by finder, or the singular SuperReader in the widget tree, if finder is null.
findParagraphStyle(String nodeId, [Finder? superDocumentFinder]) TextStyle?
Finds and returns the TextStyle that's applied to the top-level of the TextSpan in the paragraph with the given nodeId.
findTextInParagraph(String nodeId, [Finder? superDocumentFinder]) AttributedText
Returns the AttributedText within the ParagraphNode associated with the given nodeId.
findWidgetForComponent<WidgetType>(String nodeId, [Finder? superDocumentFinder]) → WidgetType
Finds and returns the Widget that configures the DocumentComponent with the given nodeId.
getNodeAt<NodeType extends DocumentNode>(int index, [Finder? superDocumentFinder]) → NodeType
Returns the DocumentNode at given the index.
hasFocus([Finder? finder]) bool
Returns true if the given SuperReader widget currently has focus, or false otherwise.
isPositionVisibleGlobally(DocumentPosition position, Size globalSize, [Finder? finder]) bool
Returns true if the entire content rectangle at position is visible on screen, or false otherwise.