* enable lint unnecessary_new * fix tests * fix tests * fix tests
* lint unnecessary_new on samples * fix tests
flutter analyze
* `flutter analyze` cleanup * Make `--dartdocs` work in all modes. * Make `analyze-sample-code.dart` more resilient. * Add a test for `analyze-sample-code.dart`. * Minor cleanup in related code and files. * Apply review comments * Fix tests