It is currently allowed to override dependencies that are not mentioned elsewhere. They then get included in the package config.
It is unclear that we can break this behavior, but we can at least warn about it.
See flutter/flutter#174593 for more discussion