Flutter Connectivity:
In Flutter, Flutter Apps discovers network connectivity and configures automatically themselves accordingly. It also distinguishes the connection whether it is cellular or WiFi connection type. The connectivity class from this plugin works well for both Android and IOS.
Important: Note that on Android, this does not guarantee connection to the Internet. For instance, the app might have wifi access but it might be a VPN or a hotel WiFi with no access.
Below is the sample code to check the current status: