SuperTextFieldInspector class
Inspects that state of a SuperTextField in a test.
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
-
findCaretRectInViewport(
[Finder? superTextFieldFinder]) → Rect? - Finds and returns the bounding rectangle for the caret in the given SuperTextField, represented as coordinates that are local to the viewport.
-
findDesktopScrollController(
[Finder? superTextFieldFinder]) → ScrollController? -
findInnerPlatformTextField(
[Finder? superTextFieldFinder]) → Finder - Finds and returns the platform textfield within a SuperTextField.
-
findMaxScrollOffset(
[Finder? superTextFieldFinder]) → double? -
findMobileScrollController(
[Finder? superTextFieldFinder]) → TextScrollController? -
findProseTextLayout(
[Finder? superTextFieldFinder]) → ProseTextLayout -
Finds and returns the
ProseTextLayoutwithin a SuperTextField. -
findRichText(
[Finder? superTextFieldFinder]) → InlineSpan - Finds and returns the RichText within a SuperTextField.
-
findScrollOffset(
[Finder? superTextFieldFinder]) → double? - Finds and returns the scroll offset, in the direction of scrolling, within a SuperTextField.
-
findSelection(
[Finder? superTextFieldFinder]) → TextSelection? - Finds and returns the TextSelection within a SuperTextField.
-
findText(
[Finder? superTextFieldFinder]) → AttributedText - Finds and returns the AttributedText within a SuperTextField.
-
hasFocus(
[Finder? superTextFieldFinder]) → bool -
Returns
trueif the SuperTextField currently has focus. -
hasScrollableExtent(
[Finder? superTextFieldFinder]) → bool -
Returns
trueif the given SuperTextField is scrollable, i.e., the content exceeds the viewport size. -
isAndroidCollapsedHandleVisible(
[Finder? superTextFieldFinder]) → bool -
isMultiLine(
[Finder? superTextFieldFinder]) → bool -
Returns
trueif the given SuperTextField is a multi-line text field. -
isScrolledToBeginning(
[Finder? superTextFieldFinder]) → bool -
Returns
trueif the given SuperTextField has a scroll offset of zero, i.e., is scrolled to the beginning of the viewport. -
isScrolledToEnd(
[Finder? superTextFieldFinder]) → bool -
Returns
trueif the given SuperTextField is scrolled all the away to the end of the viewport. -
isSingleLine(
[Finder? superTextFieldFinder]) → bool -
Returns
trueif the given SuperTextField is a single-line text field.