Clean up violations of Dart lint "prefer_typing_uninitialized_variables".
PREFER specifying a type annotation for uninitialized variables and fields.

[Lint documentation](https://dart-lang.github.io/linter/lints/prefer_typing_uninitialized_variables.html)
[Dart lints discussion](http://g/dart-lints/GrWil4gpWQ0/V_0S9MjlAQAJ)

Tested:
    tap_presubmit: http://test/OCL:359424889:BASE:359405290:1614246178194:7129d106
    Sample tests for this CL passed, but some tests failed during the TGP run. Test failures are believed to be unrelated to this CL
PiperOrigin-RevId: 359562635
diff --git a/lib/src/mock.dart b/lib/src/mock.dart
index 76b88a9..8d47708 100644
--- a/lib/src/mock.dart
+++ b/lib/src/mock.dart
@@ -661,7 +661,7 @@
 
   void _checkWith(bool never) {
     if (!never && matchingInvocations.isEmpty) {
-      var message;
+      String message;
       if (mock._realCalls.isEmpty) {
         message = 'No matching calls (actually, no calls at all).';
       } else {