screenshot method

Future<void> screenshot({
  1. String? name,
  2. List<String>? tags,
})

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