getNetworkInfo method
Implementation
@override
Future<NetworkInfo> getNetworkInfo() async {
final map = await methodChannel.invokeMapMethod<dynamic, dynamic>('getNetworkInfo');
if (map == null) {
throw PlatformException(
code: 'NULL_RESPONSE',
message: 'getNetworkInfo returned null',
);
}
return NetworkInfo.fromMap(map);
}