protectSocket method

  1. @override
Future<bool> protectSocket(
  1. int socket
)
override

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}";
  }
}