A Dart Future Handling Tool

Fred Grott
6 min readSep 20, 2021

I see this constantly in the Dart and Flutter Docs and Samples, sure Future examples work, but they hide some bad habits. You should be striving to wrap most inner function calls in Future blocks in try-catch blocks so that if something unplanned happens that one gets a proper error message back in logs with a helpful stacktrace.

My helpful tool almost automates creating try-catch blocks, so you have less…

--

--