getCurrentNetworkSpeed static method
Get current network speed details Returns a Map containing network type, download speed, and upload speed
Implementation
static Future<Map<String, dynamic>> getCurrentNetworkSpeed() async {
final Map<dynamic, dynamic> result =
await _channel.invokeMethod('getCurrentNetworkSpeed');
return {
'networkType': result['networkType'],
'downloadSpeed': result['downloadSpeed'],
'uploadSpeed': result['uploadSpeed'],
'signalStrength': result['signalStrength'],
};
}