This is a bit of an edge case but the resolution should be good for overall generated file consistency.
Issue Replication
Run builder using the following configuration-
output_file_name : localizations.t.dart (note: this is purposefully not set to a .g type file)
output_format : multiple_files
Resulting files will contain error in "part of" section of imports due to a mismatch in file name. Generated file name fails to pull from the custom output_file_name parameter.
Resolution
Update "part of" code generation to use the config output_file_name instead of manually creating file name using baseName
Updates
Added outputFileName as a parameter in GenerateConfig class
This is a bit of an edge case but the resolution should be good for overall generated file consistency.
Issue Replication
Run builder using the following configuration-
Resulting files will contain error in "part of" section of imports due to a mismatch in file name. Generated file name fails to pull from the custom output_file_name parameter.
Resolution
Update "part of" code generation to use the config output_file_name instead of manually creating file name using baseName
Updates