plugin_platform_interface
Reusable base class for platform interfaces of Flutter federated plugins, to help enforce best practices.
2.1.8
6.9M downloads/mo
#90 most downloaded on pub.dev
flutter/packages
What this package is like to depend on
Last release 3 years ago
no release in 18 months
Ships fairly regularly
a new release about every 3 months
Nearly every release is documented
notes for 16 of 16 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
19 releases · first in 2019
0 releases in the last 12 months
see the full history below
Release timeline
19 releases · Dec 2019 to Jan 2024Releases
latest 19-
2.1.804 Jan 2024 -
2.1.717 Nov 2023Release notes
Open source →- Changes
MockPlatformInterfaceMixinto amixin classfor better compatibility with projects that have a minumum Dart SDK version of 3.0. - Updates minimum supported SDK version to Dart 3.0.
- Changes
-
2.1.630 Aug 2023Release notes
Open source →- Adds pub topics to package metadata.
- Updates minimum supported SDK version to Flutter 3.7/Dart 2.19.
-
2.1.520 Jul 2023Release notes
Open source →- Updates README to improve example and discuss
base. - Updates minimum Flutter version to 3.3.
- Updates README to improve example and discuss
-
2.1.422 Feb 2023Release notes
Open source →- Updates links for the merge of flutter/plugins into flutter/packages.
- Updates minimum supported Dart version.
-
2.1.315 Sep 2022Release notes
Open source →- Minor fixes for new analysis options.
- Adds additional tests for
PlatformInterfaceandMockPlatformInterfaceMixin. - Modifies
PlatformInterfaceto use an expando for detecting if a customer tries to implement PlatformInterface usingimplementsrather thanextends. This ensures thatverifywill continue to work as advertized after https://github.com/dart-lang/language/issues/2020 is implemented.
-
2.1.208 Jan 2022Release notes
Open source →- Updates README to demonstrate
verifyrather thanverifyToken, and to note that the test mixin applies to fakes as well as mocks. - Adds an additional test for
verifyToken.
- Updates README to demonstrate
-
2.1.107 Jan 2022 -
2.1.006 Jan 2022Release notes
Open source →- Introduce
verify, which prevents use ofconst Object()as instance token. - Add a comment indicating that
verifyTokenwill be deprecated in a future release.
- Introduce
-
2.0.230 Sep 2021 -
2.0.108 Jul 2021 -
2.0.018 Feb 2021 -
1.1.0-nullsafety.201 Feb 2021 pre-releaseNothing published for this version
-
1.1.0-nullsafety.105 Nov 2020 pre-releaseNothing published for this version
-
1.1.0-nullsafety28 Oct 2020 pre-releaseNothing published for this version
-
1.0.329 Sep 2020 -
1.0.221 Feb 2020 -
1.0.113 Dec 2019Release notes
Open source →- Fixed a bug that made all platform interfaces appear as mocks in release builds (https://github.com/flutter/flutter/issues/46941).
-
1.0.011 Dec 2019Release notes
Open source →- Provides
PlatformInterfacewith common mechanism for enforcing that a platform interface is not implemented withimplements. - Provides test only
MockPlatformInterfaceto enable using Mockito to mock platform interfaces.
- Provides