commit | eab885b84b99f72bb7b8c8b7a5edba6eaaa68808 | [log] [tgz] |
---|---|---|
author | stuartmorgan <stuartmorgan@google.com> | Thu Mar 25 10:27:23 2021 -0700 |
committer | GitHub <noreply@github.com> | Thu Mar 25 10:27:23 2021 -0700 |
tree | 6c07329ce24a3259353c7dbf3c04dbd0c5ae862f | |
parent | c3dc31f665f3ccaa96898a6f719591c8642c32de [diff] |
[google_maps_flutter] Fix handling of non-nullable invokeMethod return types (#3754) During the null-safety migration I accepted the auto-migrator use of as Future<T> to handle invokeMethod<T> returning a T?. I didn't realize that as does not actually do that kind of casting, and will fail with "type 'Future<T?>' is not a subtype of type 'Future<T>' in type cast". There were no tests that exercised these methods in any way, so automated tests didn't catch the bug. This adds a minimal test that calls all of the non-void methods to ensure that they don't explode (and a TODO to backfill full unit tests of the entire method channel). Fixes flutter/flutter#78426 Fixes flutter/flutter#78856
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter first-party plugins (i.e., plugins developed by the core Flutter team). Check the packages
directory for all plugins.
Flutter plugins enable access to platform-specific APIs. For more information about plugins, and how to use them, see https://flutter.dev/platform-plugins/.
These plugins are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo.
Issues pertaining to this repository are labeled “plugin”.
If you wish to contribute a new plugin to the Flutter ecosystem, please see the documentation for developing packages and platform channels. You can store your plugin source code in any GitHub repository (the present repo is only intended for plugins developed by the core Flutter team). Once your plugin is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide, and send a pull request.
These are the available plugins in this repository.