This recipe looks at the find constant provided by
the flutter_test package, and demonstrates how
to work with some of the Finders it provides.
For a full list of available finders,
see the CommonFinders documentation.

If you’re unfamiliar with widget testing and the role of
Finder classes,
review the Introduction to widget testing recipe.

This recipe uses the following steps:

Find a Text widget.

Find a widget with a specific Key.

Find a specific widget instance.

1. Find a Text widget

In testing, you often need to find widgets that contain specific text.
This is exactly what the find.text() method is for. It creates a
Finder that searches for widgets that display a specific String of text.

2. Find a widget with a specific Key