Open
Description
I'd like a lint rule that flags public library members (classes, top-level variables, typedefs, functions) and public class members (all the usual suspects) that are unused within their package, and not exposed from a library in the lib/
directory.
// lib/foo.dart
export 'src/foo.dart' show usedConstant;
// lib/src/foo.dart
// BAD
final unusedConstant = "CONSTANT";
final usedConstant = "CONSTANT";