Skip to content

Provides compatible bindings instance across different Flutter version.

License

Notifications You must be signed in to change notification settings

fluttercandies/flutter_bindings_compatible

Repository files navigation

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.

Bindings

Start from Flutter 2.13, bindings are always non-nullable.

See flutter/flutter#89451.