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

findAllMobileDragHandles([Finder? superReaderFinder]) → Finder
Returns true if any type of mobile drag handles are visible, or false if not.
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.
findMobileCaret([Finder? superReaderFinder]) → Finder
findMobileCaretDragHandle([Finder? superReaderFinder]) → Finder
findMobileDownstreamDragHandle([Finder? superReaderFinder]) → Finder
findMobileExpandedDragHandles([Finder? superReaderFinder]) → Finder
findMobileUpstreamDragHandle([Finder? superReaderFinder]) → Finder
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.
findRichTextInParagraph(String nodeId, [Finder? superReaderFinder]) → TextSpan
Finds the paragraph with the given nodeId and returns the paragraph's content as a TextSpan.
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.
isMobileMagnifierVisible() → bool
Returns true if a mobile magnifier is currently visible, or false if it's not.
isMobileToolbarVisible() → bool
Returns true if the mobile floating toolbar is currently visible, or false if it's not.
isPositionVisibleGlobally(DocumentPosition position, Size globalSize, [Finder? finder]) → bool
Returns true if the entire content rectangle at position is visible on screen, or false otherwise.
wantsMobileMagnifierToBeVisible([Finder? superReaderFinder]) → bool
Returns true if SuperReader's policy believes that a mobile magnifier should be visible right now, or false otherwise.
wantsMobileToolbarToBeVisible([Finder? superReaderFinder]) → bool
Returns true if SuperReader's policy believes that a mobile toolbar should be visible right now, or false otherwise.