CommonFinders class

Provides lightweight syntax for getting frequently used Finders and SemanticsFinders through semantics.

This class is instantiated once, as find.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
semantics CommonSemanticsFinders
Some frequently used semantics finders.
no setter
textRange CommonTextRangeFinders
Some frequently used text range finders.
no setter

Methods

ancestor({required FinderBase<Element> of, required FinderBase<Element> matching, bool matchRoot = false}) Finder
Finds widgets that are ancestors of the of parameter and that match the matching parameter.
byElementPredicate(ElementPredicate predicate, {String? description, bool skipOffstage = true}) Finder
Finds widgets using an element predicate.
byElementType(Type type, {bool skipOffstage = true}) Finder
Finds widgets by searching for elements with a particular type.
byIcon(IconData icon, {bool skipOffstage = true}) Finder
Finds Icon widgets containing icon data equal to the icon argument.
byKey(Key key, {bool skipOffstage = true}) Finder
Finds widgets by searching for one with the given key.
bySemanticsLabel(Pattern label, {bool skipOffstage = true}) Finder
Finds Semantics widgets matching the given label, either by RegExp.hasMatch or string equality.
bySubtype<T extends Widget>({bool skipOffstage = true}) Finder
Finds widgets by searching for widgets implementing a particular type.
byTooltip(String message, {bool skipOffstage = true}) Finder
Finds Tooltip widgets with the given message.
byType(Type type, {bool skipOffstage = true}) Finder
Finds widgets by searching for widgets with a particular type.
byWidget(Widget widget, {bool skipOffstage = true}) Finder
Finds widgets whose current widget is the instance given by the widget argument.
byWidgetPredicate(WidgetPredicate predicate, {String? description, bool skipOffstage = true}) Finder
Finds widgets using a widget predicate.
descendant({required FinderBase<Element> of, required FinderBase<Element> matching, bool matchRoot = false, bool skipOffstage = true}) Finder
Finds widgets that are descendants of the of parameter and that match the matching parameter.
image(ImageProvider<Object> image, {bool skipOffstage = true}) Finder
Finds Image and FadeInImage widgets containing image equal to the image argument.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
text(String text, {bool findRichText = false, bool skipOffstage = true}) Finder
Finds Text, EditableText, and optionally RichText widgets containing string equal to the text argument.
textContaining(Pattern pattern, {bool findRichText = false, bool skipOffstage = true}) Finder
Finds Text and EditableText, and optionally RichText widgets which contain the given pattern argument.
toString() String
A string representation of this object.
inherited
widgetWithIcon(Type widgetType, IconData icon, {bool skipOffstage = true}) Finder
Looks for widgets that contain an Icon descendant displaying IconData icon in it.
widgetWithImage(Type widgetType, ImageProvider<Object> image, {bool skipOffstage = true}) Finder
Looks for widgets that contain an Image descendant displaying ImageProvider image in it.
widgetWithText(Type widgetType, String text, {bool skipOffstage = true}) Finder
Looks for widgets that contain a Text descendant with text in it.

Operators

operator ==(Object other) bool
The equality operator.
inherited