getting playstore version code in flutter programmatically 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