getNetworkLevel method
- String dataType
Get the network status by dataType of the user in the session.
Return the network status of the user in the session.
Implementation
Future<String> getNetworkLevel(String dataType) async {
var params = <String, dynamic>{};
params.putIfAbsent("userId", () => userId);
params.putIfAbsent("dataType", () => dataType);
return await methodChannel
.invokeMethod<String>('getNetworkLevel', params)
.then<String>((String? value) => value ?? "");
}