https://github.com/fluttercandies/flutter_bindings_compatible
Provides compatible bindings instance across different Flutter version.
https://github.com/fluttercandies/flutter_bindings_compatible
flutter
Last synced: 5 months ago
JSON representation
Provides compatible bindings instance across different Flutter version.
- Host: GitHub
- URL: https://github.com/fluttercandies/flutter_bindings_compatible
- Owner: fluttercandies
- License: mit
- Created: 2022-05-11T07:00:45.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T09:39:13.000Z (almost 2 years ago)
- Last Synced: 2025-05-19T01:10:49.550Z (about 1 year ago)
- Topics: flutter
- Language: C++
- Homepage: https://pub.dev/packages/bindings_compatible
- Size: 127 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Flutter bindings compatible
Provides compatible bindings instance or methods across different Flutter version.
Different Flutter versions has different nullability between methods,
which leads instance callers with null-aware operators report lint warnings.
The package wraps them into separate functions, and ignore the warning.
## `*.of`
Start from Flutter 3.7, `*.of` are updated to return non-nullable instance.
See [Migrate `of` to non-nullable return values, and add `maybeOf`](https://docs.flutter.dev/release/breaking-changes).
## Bindings
Start from Flutter 2.13, bindings are always non-nullable.
See [flutter/flutter#89451](https://github.com/flutter/flutter/pull/89451).