Well, it seems obvious now. The problem was that flutter created versions of these files with a .kts prefix. This relates to the new domain-specific-language (DSL) being used for gradle. I did see these files but assumed they had some different purpose.
The problem I now have is that flutterfire cli won't configure apps with kts files.