title: Flutter - Problem with adding Firebase Messaging
body: <p>Doctor summary (to see all details, run flutter doctor -v):<br>
  [√] Flutter (Channel stable, 2.5.0, on Microsoft Windows [VersiÃ³n 10.0.19042.1348], locale en-US)<br>
  [√] Android toolchain - develop for Android devices (Android SDK version 30.0.0-rc2)<br>
  [√] Chrome - develop for the web<br>
  [√] Android Studio (version 3.6)<br>
  [√] VS Code (version 1.52.1)<br>
  [√] Connected device (3 available)<br></p>
  <p>My pubsec.yaml has only:<br>
  firebase_messaging: ^10.0.1<br>
  firebase_core: ^1.2.1<br>
  flutter_local_notifications: ^6.1.0<br>
  <br>
  The problem I am having even on a brand new Flutter Project is that I am getting the following error when I add import 'package:firebase_messaging/firebase_messaging.dart'; to main.dart</p>
  <pre><code>/D:/Flutter/flutter_windows_2.5.0-stable/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:13:11: Error: Method not found: 'Error.throwWithStackTrace'.
      Error.throwWithStackTrace(exception, stackTrace);
            ^^^^^^^^^^^^^^^^^^^
  /D:/Flutter/flutter_windows_2.5.0-stable/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:16:9: Error: Method not found: 'Error.throwWithStackTrace'.
    Error.throwWithStackTrace(
          ^^^^^^^^^^^^^^^^^^^
  /D:/Flutter/flutter_windows_2.5.0-stable/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:11:7: Error: A non-null value must be returned since the return type 'Never' doesn't allow null.
  Never convertPlatformException(Object exception, StackTrace stackTrace) {
        ^
  
  
  FAILURE: Build failed with an exception.
  
  * Where:
  Script 'D:\Flutter\flutter_windows_2.5.0-stable\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1005
  
  * What went wrong:
  Execution failed for task ':app:compileFlutterBuildDebug'.
  &gt; Process 'command 'D:\Flutter\flutter_windows_2.5.0-stable\flutter\bin\flutter.bat'' finished with non-zero exit value 1
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED in 15s
  Exception: Gradle task assembleDebug failed with exit code 1
  
  </code></pre>