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.
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.
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.
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.
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.
findOffsetOfLineBreak(String nodeId, [Finder? finder]) int
Locates the first line break in a text node, or throws an exception if it cannot find one.
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.
findTextInParagraph(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.
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.
isPositionVisibleGlobally(DocumentPosition position, Size globalSize, [Finder? finder]) bool
Returns true if the entire content rectangle at position is visible on screen, or false otherwise.