iTapIcon function

Future<void> iTapIcon(
  1. WidgetTester tester,
  2. IconData icon
)

Example: When I tap {Icons.add} icon

Implementation

Future<void> iTapIcon(
  WidgetTester tester,
  IconData icon,
) async {
  await tester.tap(find.byIcon(icon));
  await tester.pump();
}