Open kwalrath opened 6 years ago
Do you specifically want it to be limited to dart:async
, or should it remove all unnecessary imports?
I don't particularly care. Removing all unnecessary imports would be fine. :)
Make sure that DartDoc references count as uses, especially if they are the only use of an import. :)
It's also dangerous (i.e., wrong) to remove the import of dart:async
if the code in question has an SDK dependency below 2.1.
As of 2.1.0-dev.5.0, dart:core exports Future & Stream. This makes many imports of dart:async unnecessary.
I'd like dartfix to automatically remove unnecessary imports of dart:async.