Update pedantic (#388)

* Update pedantic and fix problems

* dartfmt

* Fix error

* Add debug branch

* Bump min sdk to 2.3.0

* Ignore unnecessary_this,prefer_final_fields

* Fix lint error

* Update pregenerated

* Fix tests

* Fix docs

* Fix for dart 2.10-dev

* Remove test branch

* Fix

* Fix changelog

* Fix typo

* Fixes after review

* Fix format for 2.10.0-56.0.dev
diff --git a/protoc_plugin/test/validate_fail_test.dart b/protoc_plugin/test/validate_fail_test.dart
index 687a90c..a901d79 100755
--- a/protoc_plugin/test/validate_fail_test.dart
+++ b/protoc_plugin/test/validate_fail_test.dart
@@ -15,11 +15,11 @@
 final badArgument = throwsA(invalidArgumentException);
 
 // Suppress an analyzer warning for a deliberate type mismatch.
-cast(x) => x;
+dynamic cast(x) => x;
 
 void main() {
   test('testValidationFailureMessages', () {
-    TestAllTypes builder = TestAllTypes();
+    var builder = TestAllTypes();
 
     expect(() {
       builder.optionalInt32 = null;