getFarcasterUri method
Implementation
@override
Future<String?> getFarcasterUri({String? chainId}) async {
if (_socialsNotReady) {
throw Exception('Service is not ready');
}
if (_getFarcasterUri.isCompleted) {
return await _getFarcasterUri.future;
}
//
_getFarcasterUri = Completer<String?>();
_connectionChainId = chainId ?? _connectionChainId;
_socialProvider = AppKitSocialOption.Farcaster;
final message = GetFarcasterUri().toString();
await _webViewController.runJavaScript('sendMessage($message)');
return await _getFarcasterUri.future;
}