protectSocket method
Implementation
@override
Future<bool> protectSocket(int socket) async {
try {
final bool result =
await methodChannel.invokeMethod('protectSocket', {'socket': socket});
return result;
} on PlatformException catch (e) {
throw "Error protecting socket: ${e.message}";
}
}