When refactoring my code and when executing build_runner, I received out of a sudden loads of errors alike
[SEVERE] injectable_generator:injectable_builder on lib/application/authorization/xxx data_sync/sync_data.dart (cached):
type 'UnspecifiedInvalidResult' is not a subtype of type 'LibraryElementResult' in type cast
As can be seen, they result from the injectable package.