screenshot method
Takes a screenshot of the current widget and display it in the Flutterware visualizer
Implementation
Future<void> screenshot({String? name, List<String>? tags}) async {
for (var i = 0; i < 5; i++) {
await pump();
}
await tester.screenshot(name: name, tags: tags);
}