For forcing the app user to update if an update is available in the market, you should first check the app version on the market and compare it with the version of the app on the device.
Read moreHow do I update project flutter?
Update your Flutter project to Flutter 2.0
Read moreHow do I force update my flutter app?
Injecting force update mechanism to a Flutter app
Read more