Flutter automatically update application when new version is available code example
Example: flutter update app version
flutter build appbundle --build-name=1.0.1 --build-number=2
flutter build appbundle --build-name=1.0.1 --build-number=2