tapText method
Find a widget by its text, tap it, and settle.
A one-liner for the most common interaction pattern in widget tests.
Example:
await tester.tapText('Login');
await tester.tapText('Submit');
Implementation
Future<void> tapText(String text) async {
await tap(find.text(text));
await settle();
}