text method
Finds Text
components containing string equal to the text
argument.
Sample code
expect(find.text('Back'), findsOneComponent);
This will match Text
components that contain the "Back" string.
Implementation
Finder text(String text) => _TextFinder(text);