isMobileDataConnected static method
Checks if the device is connected to a mobile data network.
Implementation
static Future<bool> isMobileDataConnected() async {
final bool? result =
await GemKitPlatform.instance.getChannel(mapId: -1).invokeMethod(
'networkProviderCall',
jsonEncode(<String, String>{'action': 'isMobileDataConnected'}),
);
return result!;
}