google / reflectable.dart

Reflectable is a Dart library that allows programmers to eliminate certain usages of dynamic reflection by specialization of reflective code to an equivalent implementation using only static techniques. The use of dynamic reflection is constrained in order to ensure that the specialized code can be generated and will have a reasonable size.
https://pub.dev/packages/reflectable
BSD 3-Clause "New" or "Revised" License
374 stars 56 forks source link

Update reflectable dependencies to use SDK 3.4.0 and analyzer 6.7.0 #328

Closed eernstg closed 1 week ago

eernstg commented 1 week ago

Update the package dependencies and resolve static analysis issues caused by this change.

In particular, remove several occurrences of named parameters that are now deprecated (e.g., withNullability), change invocations of variable to variable2 (the analyzer package made this change in order to be able to migrate variable to a new semantics).

The new getter variable2 has a nullable return type. It can only be null in the case where the given declaration is augmenting. Reflectable uses a defensive approach to handle these nulls, and it will most likely need to be updated when the augmentation feature is fully specified and implemented.

eernstg commented 1 week ago

Thanks!