Checks the connection status of the device.
Returns true if the device is connected to the internet, false otherwise.
true
false
Future<bool> checkConnection();