text method

Finder text(
  1. String text
)

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);