SuperEditorInspector class

Inspects a given SuperEditor 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.
caretFlashPeriod([Finder? superEditorFinder]) Duration
Returns the Duration to switch the caret between visible and invisible.
findAllMobileDragHandles([Finder? superEditorFinder]) Finder
Returns true if any type of mobile drag handles are visible, or false if not.
findCaretOffsetInDocument([Finder? finder]) Offset
Returns the (x,y) offset for the caret that's currently visible in the document.
findComponentOffset(String nodeId, Alignment alignment, [Finder? finder]) Offset
Returns the (x,y) offset for the component which renders the node with the given nodeId.
findComponentSize(String nodeId, [Finder? finder]) Size
Returns the size of the component which renders the node with the given nodeId.
findComposer([Finder? finder]) DocumentComposer?
Returns the DocumentComposer within the SuperEditor matched by finder, or the singular SuperEditor in the widget tree, if finder is null.
findComposingRegion([Finder? finder]) DocumentRange?
Returns the current composing region for the SuperEditor matched by finder, or the singular SuperEditor in the widget tree, if finder is null.
findDeltaBetweenCharactersInTextNode(String nodeId, int textOffset1, int textOffset2, [Finder? superEditorFinder]) Offset
Calculates the delta between the center of the character at textOffset1 and and the center of the character at textOffset2 within the node with the given nodeId.
findDocument([Finder? finder]) Document?
Returns the Document within the SuperEditor matched by finder, or the singular SuperEditor in the widget tree, if finder is null.
findDocumentLayout([Finder? superEditorFinder]) DocumentLayout
Finds the DocumentLayout that backs a SuperEditor in the widget tree.
findDocumentSelection([Finder? finder]) DocumentSelection?
Returns the current DocumentSelection for the SuperEditor matched by finder, or the singular SuperEditor in the widget tree, if finder is null.
findListItemOrdinal(String nodeId, [Finder? superEditorFinder]) int
Finds the ordered list item with the given nodeId and returns its ordinal value.
findMobileBaseDragHandle([Finder? superEditorFinder]) Finder
Finds the base drag handle for a mobile SuperEditor.
findMobileCaret([Finder? superEditorFinder]) Finder
findMobileCaretDragHandle([Finder? superEditorFinder]) Finder
findMobileDownstreamDragHandle([Finder? superEditorFinder]) Finder
Finds the downstream drag handle for a mobile SuperEditor.
findMobileExpandedDragHandles([Finder? superEditorFinder]) Finder
findMobileExtentDragHandle([Finder? superEditorFinder]) Finder
Finds the extent drag handle for a mobile SuperEditor.
findMobileMagnifier([Finder? superEditorFinder]) Finder
Finds the magnifier for a mobile SuperEditor.
findMobileUpstreamDragHandle([Finder? superEditorFinder]) Finder
Finds the upstream drag handle for a mobile SuperEditor.
findOffsetOfLineBreak(String nodeId, [Finder? superEditorFinder]) int
Locates the first line break in a text node, or throws an exception if it cannot find one.
findParagraphIndent(String nodeId, [Finder? superEditorFinder]) int
Finds the paragraph with the given nodeId and returns its indent level.
findParagraphStyle(String nodeId, [Finder? superEditorFinder]) 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? superEditorFinder]) TextSpan
Finds the paragraph with the given nodeId and returns the paragraph's content as a TextSpan.
findTaskIndent(String nodeId, [Finder? superEditorFinder]) int
Finds the task with the given nodeId and returns its indent level.
findTextInComponent(String nodeId, [Finder? superEditorFinder]) AttributedText
Returns the AttributedText within the ParagraphNode associated with the given nodeId.
findWidgetForComponent<WidgetType>(String nodeId, [Finder? superEditorFinder]) → WidgetType
Finds and returns the Widget that configures the DocumentComponent with the given nodeId.
getNodeAt<NodeType extends DocumentNode>(int index, [Finder? superEditorFinder]) → NodeType
Returns the DocumentNode at given the index.
hasFocus([Finder? finder]) bool
Returns true if the given SuperEditor widget currently has focus, or false otherwise.
isCaretVisible([Finder? superEditorFinder]) bool
Returns true if the caret is currently visible and 100% opaque, or false if it's not.
isImeConnectionOpen([Finder? finder]) bool
Returns true if the given SuperEditor widget currently has an open IME connection, or false if no IME connection is open, or if SuperEditor is in keyboard mode.
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? superEditorFinder]) bool
Returns true if SuperEditor's policy believes that a mobile magnifier should be visible right now, or false otherwise.
wantsMobileToolbarToBeVisible([Finder? superEditorFinder]) bool
Returns true if SuperEditor's policy believes that a mobile toolbar should be visible right now, or false otherwise.