File.writeAsString is hanging when I try to run inside a widget test ( my goal is to take a screenshot of the widget undertest using Repaint boundaries on test fail and save the png to a file, same like update golden files with running this command )
testWidgets("Display correct greeting text and user firstname morning start",
(WidgetTester _tester) async {
print("Saving test widget");
await File("test_generated_4.txt").writeAsString('some content');
// code never reaches here
print("Saved test widget");
});