Auto-generate class is not updating with build_runner
When it conflicts with current generated classes, it may possible that it will not update the generated classes. So I have tested with below command and it's working fine.
flutter packages pub run build_runner build --delete-conflicting-outputs
This will delete current conflict files and recreate as per the requirements.