Closed johnpryan closed 8 years ago
Actually, there is a better way now of silencing these warnings. You should be able to just add: // ignore: UNUSED_IMPORT
before the import statement.
This works really nicely. Thanks for the quick response
It looks like you can also add the comment on the same line:
import 'package:polymer_elements/iron_flex_layout.dart'; // ignore: UNUSED_IMPORT
The design for Dart to HTML imports results in users using a doc comment to silence
library x is unused
warnings:polymer_elements has certain elements (iron_flex_layout for instance) that don't have a Dart class. So there is no clean way to silence analyzer warnings:
It would be helpful to generate a dummy class to get around this: