squash (#85484)
This commit is contained in:
@@ -178,13 +178,14 @@ class BySemanticsLabel extends SerializableFinder {
|
||||
}
|
||||
}
|
||||
|
||||
/// A Flutter Driver finder that finds widgets by [text] inside a [Text] or
|
||||
/// [EditableText] widget.
|
||||
/// A Flutter Driver finder that finds widgets by [text] inside a
|
||||
/// [widgets.Text] or [widgets.EditableText] widget.
|
||||
class ByText extends SerializableFinder {
|
||||
/// Creates a text finder given the text.
|
||||
const ByText(this.text);
|
||||
|
||||
/// The text that appears inside the [Text] or [EditableText] widget.
|
||||
/// The text that appears inside the [widgets.Text] or [widgets.EditableText]
|
||||
/// widget.
|
||||
final String text;
|
||||
|
||||
@override
|
||||
|
||||
@@ -742,7 +742,8 @@ abstract class FlutterDriver {
|
||||
class CommonFinders {
|
||||
const CommonFinders._();
|
||||
|
||||
/// Finds [Text] and [EditableText] widgets containing string equal to [text].
|
||||
/// Finds [widgets.Text] and [widgets.EditableText] widgets containing string
|
||||
/// equal to [text].
|
||||
SerializableFinder text(String text) => ByText(text);
|
||||
|
||||
/// Finds widgets by [key]. Only [String] and [int] values can be used.
|
||||
|
||||
Reference in New Issue
Block a user