startAsClient method

  1. @override
Future<bool> startAsClient({
  1. String? deviceName,
})
override

Start as client with optional device name

Implementation

@override
Future<bool> startAsClient({String? deviceName}) async {
  try {
    final result = await _channel.invokeMethod<bool>('startAsClient', {
      'deviceName': deviceName,
    });
    return result ?? false;
  } catch (e) {
    debugPrint('Error starting as client: $e');
    return false;
  }
}